1
0
Fork 0
forked from wry/wry

autocommit 2022-04-18 14:14:25 CEST

This commit is contained in:
Julian Orth 2022-04-18 14:14:25 +02:00
parent 085ca95835
commit 54cf01f745
20 changed files with 155 additions and 109 deletions

View file

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