From b2eb207ce49609dead69d5f201aebe560aef862c Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 5 Nov 2021 19:53:52 +0800 Subject: [PATCH] Fix no_position builds. --- src/tests.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 + } + ); }