autocommit 2022-02-01 01:20:49 CET
This commit is contained in:
parent
f2117256b9
commit
7654e70f64
39 changed files with 830 additions and 761 deletions
|
|
@ -22,9 +22,7 @@ impl<T: UnsafeCellCloneSafe> CloneCell<T> {
|
|||
|
||||
#[inline(always)]
|
||||
pub fn set(&self, t: T) -> T {
|
||||
unsafe {
|
||||
mem::replace(self.data.get().deref_mut(), t)
|
||||
}
|
||||
unsafe { mem::replace(self.data.get().deref_mut(), t) }
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue