File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl Group {
63
63
_align : Group ,
64
64
bytes : [ u8 ; Group :: WIDTH ] ,
65
65
} ;
66
- const ALIGNED_BYTES : AlignedBytes = AlignedBytes {
66
+ static ALIGNED_BYTES : AlignedBytes = AlignedBytes {
67
67
bytes : [ EMPTY ; Group :: WIDTH ] ,
68
68
} ;
69
69
unsafe { & ALIGNED_BYTES . bytes }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub const BITMASK_MASK: BitMaskWord = 0xffff;
19
19
pub struct Group ( x86:: __m128i ) ;
20
20
21
21
// FIXME: https://github.com/rust-lang/rust-clippy/issues/3859
22
- #[ allow( clippy:: use_self) ]
22
+ #[ allow( clippy:: use_self) ]
23
23
impl Group {
24
24
/// Number of bytes in the group.
25
25
pub const WIDTH : usize = mem:: size_of :: < Self > ( ) ;
@@ -34,7 +34,7 @@ impl Group {
34
34
_align : Group ,
35
35
bytes : [ u8 ; Group :: WIDTH ] ,
36
36
} ;
37
- const ALIGNED_BYTES : AlignedBytes = AlignedBytes {
37
+ static ALIGNED_BYTES : AlignedBytes = AlignedBytes {
38
38
bytes : [ EMPTY ; Group :: WIDTH ] ,
39
39
} ;
40
40
unsafe { & ALIGNED_BYTES . bytes }
You can’t perform that action at this time.
0 commit comments