From 9598dfc3f069681ebc2145ca87f8ed19bdde3cb7 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 21 Apr 2026 17:24:33 +0000 Subject: didn't like how long that was --- src/x86_64.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::() == core::mem::size_of::(), "asmlinator only supports 64-bit targets"); + assert!(size_of::() == size_of::(), "asmlinator only supports 64-bit targets"); }; // the wanton casting between usize and u64 is justifiable here because TARGET_IS_64BIT above: -- cgit v1.1