From 1c0e6c253fac14d7c4f61622ba10cc619616ff04 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Thu, 11 Jun 2020 16:11:46 +0200 Subject: [PATCH] Fix test. --- src/arch/x86_64/paging/entry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/paging/entry.rs b/src/arch/x86_64/paging/entry.rs index c8a0f96..ba6f941 100644 --- a/src/arch/x86_64/paging/entry.rs +++ b/src/arch/x86_64/paging/entry.rs @@ -82,6 +82,7 @@ impl Entry { mod tests { #[test] fn entry_has_required_arch_alignment() { - assert_eq!(core::mem::align_of::(), core::mem::align_of::()); + use super::Entry; + assert!(core::mem::align_of::() >= core::mem::align_of::(), "alignment of Entry is less than the required alignment of u64 ({} < {})", core::mem::align_of::(), core::mem::align_of::()); } }