manual fixups
This commit is contained in:
parent
8f51c8d687
commit
06812c2999
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
// [1]: (www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html)
|
||||||
atomic::fence(Acquire);
|
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 x = Box::new(5);
|
||||||
/// let y = x.clone();
|
/// let y = x.clone();
|
||||||
/// ```
|
/// ```
|
||||||
|
#[rustfmt_skip]
|
||||||
#[inline]
|
#[inline]
|
||||||
fn clone(&self) -> Box<T> {
|
fn clone(&self) -> Box<T> {
|
||||||
box {
|
box { (**self).clone() }
|
||||||
(**self).clone()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/// Copies `source`'s contents into `self` without creating a new allocation.
|
/// Copies `source`'s contents into `self` without creating a new allocation.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue