tidy
This commit is contained in:
parent
cdd6bba8f6
commit
0318b70514
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ macro_rules! assert_size_eq {
|
|||
($ty:ty, $size:expr, $optioned_size:expr) => {
|
||||
assert_size_eq!($ty, $size);
|
||||
assert_size_eq!(Option<$ty>, $optioned_size);
|
||||
const _: () = assert!($size == $optioned_size || size_of::<$ty>() < size_of::<Option<$ty>>());
|
||||
const _: () = assert!(
|
||||
$size == $optioned_size ||
|
||||
size_of::<$ty>() < size_of::<Option<$ty>>()
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue