Set poll_fn in TaskStorage::new

This commit is contained in:
Grant Miller
2023-01-31 17:29:34 -06:00
parent 465e4c8b19
commit a697f1517a
2 changed files with 14 additions and 27 deletions

View File

@ -25,9 +25,3 @@ impl<T> UninitCell<T> {
ptr::drop_in_place(self.as_mut_ptr())
}
}
impl<T: Copy> UninitCell<T> {
pub unsafe fn read(&self) -> T {
ptr::read(self.as_mut_ptr())
}
}