File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl Group {
6363 _align : Group ,
6464 bytes : [ u8 ; Group :: WIDTH ] ,
6565 } ;
66- const ALIGNED_BYTES : AlignedBytes = AlignedBytes {
66+ static ALIGNED_BYTES : AlignedBytes = AlignedBytes {
6767 bytes : [ EMPTY ; Group :: WIDTH ] ,
6868 } ;
6969 unsafe { & ALIGNED_BYTES . bytes }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub const BITMASK_MASK: BitMaskWord = 0xffff;
1919pub struct Group ( x86:: __m128i ) ;
2020
2121// FIXME: https://github.com/rust-lang/rust-clippy/issues/3859
22- #[ allow( clippy:: use_self) ]
22+ #[ allow( clippy:: use_self) ]
2323impl Group {
2424 /// Number of bytes in the group.
2525 pub const WIDTH : usize = mem:: size_of :: < Self > ( ) ;
@@ -34,7 +34,7 @@ impl Group {
3434 _align : Group ,
3535 bytes : [ u8 ; Group :: WIDTH ] ,
3636 } ;
37- const ALIGNED_BYTES : AlignedBytes = AlignedBytes {
37+ static ALIGNED_BYTES : AlignedBytes = AlignedBytes {
3838 bytes : [ EMPTY ; Group :: WIDTH ] ,
3939 } ;
4040 unsafe { & ALIGNED_BYTES . bytes }
You can’t perform that action at this time.
0 commit comments