about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-09-24 10:03:05 +1200
committerNick Cameron <ncameron@mozilla.com>2015-09-24 10:57:28 +1200
commit06812c29991d1b4bd43feef1deb4fb8ad0cf404f (patch)
tree2da4e346b6823acae5aa7277939dd416335735cc /src/liballoc
parent8f51c8d687cb6fd7e98f68b93f40445ecd4690fa (diff)
downloadrust-06812c29991d1b4bd43feef1deb4fb8ad0cf404f.tar.gz
rust-06812c29991d1b4bd43feef1deb4fb8ad0cf404f.zip
manual fixups
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.
     ///