Fix no_position builds.
This commit is contained in:
parent
affbb81d8a
commit
b2eb207ce4
@ -36,5 +36,12 @@ fn check_struct_sizes() {
|
|||||||
if cfg!(feature = "no_position") { 8 } else { 16 }
|
if cfg!(feature = "no_position") { 8 } else { 16 }
|
||||||
);
|
);
|
||||||
assert_eq!(size_of::<EvalAltResult>(), 72);
|
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
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user