Skip to content

Commit

Permalink
Remove unnecessary use of #[repr(packed)].
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
huonw committed Jul 24, 2015
1 parent 3ce9eba commit 7f28092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stemmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::ffi::CStr;
use std::ffi::CString;
use std::str;

#[repr(C,packed)]
#[repr(C)]
struct SbStemmer;
type SbSymbol = u8;

Expand Down

0 comments on commit 7f28092

Please sign in to comment.