From 06812c29991d1b4bd43feef1deb4fb8ad0cf404f Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Thu, 24 Sep 2015 10:03:05 +1200 Subject: [PATCH] manual fixups --- src/liballoc/arc.rs | 4 +++- src/liballoc/boxed.rs | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 4e95e383f41..fa4a6060ad3 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -585,7 +585,9 @@ impl Drop for Arc { // [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(); + } } } diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 18301b9d32c..47405b76fea 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -284,11 +284,10 @@ impl Clone for Box { /// let x = Box::new(5); /// let y = x.clone(); /// ``` + #[rustfmt_skip] #[inline] fn clone(&self) -> Box { - box { - (**self).clone() - } + box { (**self).clone() } } /// Copies `source`'s contents into `self` without creating a new allocation. ///