aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/x86_64.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x86_64.rs b/src/x86_64.rs
index d02fcf0..a04dfb5 100644
--- a/src/x86_64.rs
+++ b/src/x86_64.rs
@@ -1,4 +1,5 @@
use core::fmt;
+use core::mem::size_of;
use core::num::NonZero;
use core::ptr::NonNull;
use nix::sys::mman::{MapFlags, ProtFlags};
@@ -13,7 +14,7 @@ use kvm_bindings::{
pub use kvm_bindings::{kvm_regs, kvm_sregs, kvm_xcrs, kvm_debug_exit_arch};
const _TARGET_IS_64BIT: () = {
- assert!(core::mem::size_of::<u64>() == core::mem::size_of::<usize>(), "asmlinator only supports 64-bit targets");
+ assert!(size_of::<u64>() == size_of::<usize>(), "asmlinator only supports 64-bit targets");
};
// the wanton casting between usize and u64 is justifiable here because TARGET_IS_64BIT above: