typo, remove old imports

This commit is contained in:
Lokathor 2019-09-20 11:05:33 -06:00 committed by GitHub
parent 8cdf598be4
commit 973ec91f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,6 @@ use super::*;
use alloc::{
alloc::{alloc_zeroed, Layout},
boxed::Box,
rc::Rc,
sync::Arc,
vec::Vec,
};
@ -50,7 +48,7 @@ pub fn try_zeroed_box<T: Zeroable>() -> Result<Box<T>, ()> {
// we don't know what the error is because `alloc_zeroed` is a dumb API
Err(())
} else {
Box::<T>::from_raw(ptr)
Box::<T>::from_raw(ptr as *mut T)
}
}