Skip to content

Commit 06812c2

Browse files
committed
manual fixups
1 parent 8f51c8d commit 06812c2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/liballoc/arc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ impl<T: ?Sized> Drop for Arc<T> {
585585
// [1]: (www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html)
586586
atomic::fence(Acquire);
587587

588-
unsafe { self.drop_slow() }
588+
unsafe {
589+
self.drop_slow();
590+
}
589591
}
590592
}
591593

src/liballoc/boxed.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,10 @@ impl<T: Clone> Clone for Box<T> {
284284
/// let x = Box::new(5);
285285
/// let y = x.clone();
286286
/// ```
287+
#[rustfmt_skip]
287288
#[inline]
288289
fn clone(&self) -> Box<T> {
289-
box {
290-
(**self).clone()
291-
}
290+
box { (**self).clone() }
292291
}
293292
/// Copies `source`'s contents into `self` without creating a new allocation.
294293
///

0 commit comments

Comments
 (0)