From 7f2809255b095557ebf2bdd2da921f21d7bc7772 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Fri, 24 Jul 2015 15:55:28 -0700 Subject: [PATCH] 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 https://github.com/rust-lang/rust/issues/27060. --- src/stemmer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stemmer.rs b/src/stemmer.rs index 686f5cc..d970710 100644 --- a/src/stemmer.rs +++ b/src/stemmer.rs @@ -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;