about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs4
-rw-r--r--src/liballoc/boxed.rs5
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<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();
+        }
     }
 }
 
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<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.
     ///