diff --git a/src/tests.rs b/src/tests.rs index 6bcc7033..de960d48 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -36,5 +36,12 @@ fn check_struct_sizes() { if cfg!(feature = "no_position") { 8 } else { 16 } ); assert_eq!(size_of::(), 72); - assert_eq!(size_of::(), 72); + assert_eq!( + size_of::(), + if cfg!(feature = "no_position") { + 64 + } else { + 72 + } + ); }