fix build on old rustc

This commit is contained in:
Ralf Jung 2021-03-27 15:30:05 +01:00
parent a73081902e
commit bf9450ea19

View File

@ -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>()
}
}