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