From fde43ac93fd3341046304ff98ab8e16deaf88ebb Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Wed, 29 Apr 2026 13:42:36 +0200 Subject: [PATCH] Prefer core::marker and core::mem to fix `--no-default-features -F malloc_size_of` --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 77f1075..7054205 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2138,8 +2138,8 @@ impl MallocShallowSizeOf for ThinVec { } assert_eq!( - std::mem::size_of::(), - std::mem::size_of::<*const ()>() + core::mem::size_of::(), + core::mem::size_of::<*const ()>() ); unsafe { ops.malloc_size_of(*(self as *const Self as *const *const ())) } }