manual fixups
This commit is contained in:
parent
8f51c8d687
commit
06812c2999
@ -585,7 +585,9 @@ impl<T: ?Sized> Drop for Arc<T> {
|
||||
// [1]: (www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html)
|
||||
atomic::fence(Acquire);
|
||||
|
||||
unsafe { self.drop_slow() }
|
||||
unsafe {
|
||||
self.drop_slow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,11 +284,10 @@ impl<T: Clone> Clone for Box<T> {
|
||||
/// let x = Box::new(5);
|
||||
/// let y = x.clone();
|
||||
/// ```
|
||||
#[rustfmt_skip]
|
||||
#[inline]
|
||||
fn clone(&self) -> Box<T> {
|
||||
box {
|
||||
(**self).clone()
|
||||
}
|
||||
box { (**self).clone() }
|
||||
}
|
||||
/// Copies `source`'s contents into `self` without creating a new allocation.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user