manual fixups

This commit is contained in:
Nick Cameron 2015-09-24 10:03:05 +12:00
parent 8f51c8d687
commit 06812c2999
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -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.
///