Skip to content

Commit 7e1fd96

Browse files
authored
Prefer core::marker and core::mem to fix --no-default-features -F malloc_size_of (#83)
1 parent bed87e3 commit 7e1fd96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/lib.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,8 +2138,8 @@ impl<T> MallocShallowSizeOf for ThinVec<T> {
21382138
}
21392139

21402140
assert_eq!(
2141-
std::mem::size_of::<Self>(),
2142-
std::mem::size_of::<*const ()>()
2141+
core::mem::size_of::<Self>(),
2142+
core::mem::size_of::<*const ()>()
21432143
);
21442144
unsafe { ops.malloc_size_of(*(self as *const Self as *const *const ())) }
21452145
}

0 commit comments

Comments
 (0)