1
0
Fork 0
forked from wry/wry

autocommit 2022-02-01 01:20:49 CET

This commit is contained in:
Julian Orth 2022-02-01 01:20:49 +01:00
parent f2117256b9
commit 7654e70f64
39 changed files with 830 additions and 761 deletions

View file

@ -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)]