Skip to content

Commit 7f28092

Browse files
committed
Remove unnecessary use of #[repr(packed)].
This struct is laid out the same way with or without `packed`, since it is empty. The removal is good because there's some correctness issues with it, so there may be breaking changes to it in future and removing it now will avoid them all together. See rust-lang/rust#27060.
1 parent 3ce9eba commit 7f28092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stemmer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ffi::CStr;
44
use std::ffi::CString;
55
use std::str;
66

7-
#[repr(C,packed)]
7+
#[repr(C)]
88
struct SbStemmer;
99
type SbSymbol = u8;
1010

0 commit comments

Comments
 (0)