Ensure size of Error type is correctly tracked

This commit is contained in:
Tobie Morgan Hitchcock 2022-09-10 06:16:14 +01:00
parent 498b0a4530
commit f9645e3d55

View file

@ -1472,7 +1472,7 @@ mod tests {
#[test] #[test]
fn check_size() { fn check_size() {
assert_eq!(64, std::mem::size_of::<Value>()); assert_eq!(64, std::mem::size_of::<Value>());
assert_eq!(88, std::mem::size_of::<Result<Value, Error>>()); assert_eq!(112, std::mem::size_of::<Result<Value, Error>>());
assert_eq!(48, std::mem::size_of::<crate::sql::number::Number>()); assert_eq!(48, std::mem::size_of::<crate::sql::number::Number>());
assert_eq!(24, std::mem::size_of::<crate::sql::strand::Strand>()); assert_eq!(24, std::mem::size_of::<crate::sql::strand::Strand>());
assert_eq!(16, std::mem::size_of::<crate::sql::duration::Duration>()); assert_eq!(16, std::mem::size_of::<crate::sql::duration::Duration>());