Fix test.

This commit is contained in:
4lDO2
2020-06-11 16:11:46 +02:00
parent 8117119d8e
commit 1c0e6c253f

View File

@@ -82,6 +82,7 @@ impl Entry {
mod tests {
#[test]
fn entry_has_required_arch_alignment() {
assert_eq!(core::mem::align_of::<Entry>(), core::mem::align_of::<u64>());
use super::Entry;
assert!(core::mem::align_of::<Entry>() >= core::mem::align_of::<u64>(), "alignment of Entry is less than the required alignment of u64 ({} < {})", core::mem::align_of::<Entry>(), core::mem::align_of::<u64>());
}
}