about summary refs log tree commit diff
path: root/src/liballoc/boxed_test.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-09-24 10:00:54 +1200
committerNick Cameron <ncameron@mozilla.com>2015-09-24 10:00:54 +1200
commit8f51c8d687cb6fd7e98f68b93f40445ecd4690fa (patch)
treefee062e380e807b431755b73ba78d8128683f906 /src/liballoc/boxed_test.rs
parentafae2ff723393b3ab4ccffef6ac7c6d1809e2da0 (diff)
downloadrust-8f51c8d687cb6fd7e98f68b93f40445ecd4690fa.tar.gz
rust-8f51c8d687cb6fd7e98f68b93f40445ecd4690fa.zip
rustfmt liballoc
Diffstat (limited to 'src/liballoc/boxed_test.rs')
-rw-r--r--src/liballoc/boxed_test.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/liballoc/boxed_test.rs b/src/liballoc/boxed_test.rs
index 2ef23b26a56..7f3dadcf24d 100644
--- a/src/liballoc/boxed_test.rs
+++ b/src/liballoc/boxed_test.rs
@@ -34,12 +34,16 @@ fn any_move() {
     let b = Box::new(Test) as Box<Any>;
 
     match a.downcast::<i32>() {
-        Ok(a) => { assert!(a == Box::new(8)); }
-        Err(..) => panic!()
+        Ok(a) => {
+            assert!(a == Box::new(8));
+        }
+        Err(..) => panic!(),
     }
     match b.downcast::<Test>() {
-        Ok(a) => { assert!(a == Box::new(Test)); }
-        Err(..) => panic!()
+        Ok(a) => {
+            assert!(a == Box::new(Test));
+        }
+        Err(..) => panic!(),
     }
 
     let a = Box::new(8) as Box<Any>;
@@ -70,7 +74,8 @@ fn test_show() {
 
 #[test]
 fn deref() {
-    fn homura<T: Deref<Target=i32>>(_: T) { }
+    fn homura<T: Deref<Target = i32>>(_: T) {
+    }
     homura(Box::new(765));
 }