autocommit 2022-04-18 14:14:25 CEST
This commit is contained in:
parent
085ca95835
commit
54cf01f745
20 changed files with 155 additions and 109 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use std::mem;
|
||||
use {
|
||||
crate::utils::ptr_ext::{MutPtrExt, PtrExt},
|
||||
std::cell::UnsafeCell,
|
||||
std::{cell::UnsafeCell, mem},
|
||||
};
|
||||
|
||||
pub struct Stack<T> {
|
||||
|
|
@ -38,8 +37,6 @@ impl<T> Stack<T> {
|
|||
}
|
||||
|
||||
pub fn take(&self) -> Vec<T> {
|
||||
unsafe {
|
||||
mem::take(self.vec.get().deref_mut())
|
||||
}
|
||||
unsafe { mem::take(self.vec.get().deref_mut()) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue