mirror of
https://gitee.com/openharmony/third_party_rust_memoffset
synced 2024-11-23 07:10:22 +00:00
fix build on old rustc
This commit is contained in:
parent
a73081902e
commit
bf9450ea19
@ -87,7 +87,7 @@ pub mod __priv {
|
||||
/// Use type inference to obtain the size of the pointee (without actually using the pointer).
|
||||
#[doc(hidden)]
|
||||
pub fn size_of_pointee<T>(_ptr: *const T) -> usize {
|
||||
core::mem::size_of::<T>()
|
||||
mem::size_of::<T>()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user