about summary refs log tree commit diff
path: root/src/liballoc/sync
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-22 17:42:04 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-22 17:42:47 -0500
commita06baa56b95674fc626b3c3fd680d6a65357fe60 (patch)
treecd9d867c2ca3cff5c1d6b3bd73377c44649fb075 /src/liballoc/sync
parent8eb7c58dbb7b32701af113bc58722d0d1fefb1eb (diff)
downloadrust-a06baa56b95674fc626b3c3fd680d6a65357fe60.tar.gz
rust-a06baa56b95674fc626b3c3fd680d6a65357fe60.zip
Format the world
Diffstat (limited to 'src/liballoc/sync')
-rw-r--r--src/liballoc/sync/tests.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/liballoc/sync/tests.rs b/src/liballoc/sync/tests.rs
index 8f516129cd0..edc2820ee22 100644
--- a/src/liballoc/sync/tests.rs
+++ b/src/liballoc/sync/tests.rs
@@ -2,14 +2,17 @@ use super::*;
 
 use std::boxed::Box;
 use std::clone::Clone;
-use std::sync::mpsc::channel;
+use std::convert::{From, TryInto};
 use std::mem::drop;
 use std::ops::Drop;
 use std::option::Option::{self, None, Some};
-use std::sync::atomic::{self, Ordering::{Acquire, SeqCst}};
-use std::thread;
+use std::sync::atomic::{
+    self,
+    Ordering::{Acquire, SeqCst},
+};
+use std::sync::mpsc::channel;
 use std::sync::Mutex;
-use std::convert::{From, TryInto};
+use std::thread;
 
 use crate::vec::Vec;
 
@@ -394,11 +397,8 @@ fn test_clone_from_slice_panic() {
         }
     }
 
-    let s: &[Fail] = &[
-        Fail(0, "foo".to_string()),
-        Fail(1, "bar".to_string()),
-        Fail(2, "baz".to_string()),
-    ];
+    let s: &[Fail] =
+        &[Fail(0, "foo".to_string()), Fail(1, "bar".to_string()), Fail(2, "baz".to_string())];
 
     // Should panic, but not cause memory corruption
     let _r: Arc<[Fail]> = Arc::from(s);