Fix no_position builds.

This commit is contained in:
Stephen Chung 2021-11-05 19:53:52 +08:00
parent affbb81d8a
commit b2eb207ce4

View File

@ -36,5 +36,12 @@ fn check_struct_sizes() {
if cfg!(feature = "no_position") { 8 } else { 16 }
);
assert_eq!(size_of::<EvalAltResult>(), 72);
assert_eq!(size_of::<NativeCallContext>(), 72);
assert_eq!(
size_of::<NativeCallContext>(),
if cfg!(feature = "no_position") {
64
} else {
72
}
);
}