about summary refs log tree commit diff
path: root/src/liballoc/task.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-02 10:14:40 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-02-02 10:14:40 +0100
commit7693e3e6662c2ae8aa24d69434161f501d855420 (patch)
tree753f7af71b4aa6cef036bd3ed388644cf895e42e /src/liballoc/task.rs
parente6e27924e17aa7def20ecaf88abc18ead6d97f93 (diff)
downloadrust-7693e3e6662c2ae8aa24d69434161f501d855420.tar.gz
rust-7693e3e6662c2ae8aa24d69434161f501d855420.zip
liballoc: refactor & fix some imports.
Diffstat (limited to 'src/liballoc/task.rs')
-rw-r--r--src/liballoc/task.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/liballoc/task.rs b/src/liballoc/task.rs
index ba4e0dcda02..89dc2b10a92 100644
--- a/src/liballoc/task.rs
+++ b/src/liballoc/task.rs
@@ -8,9 +8,11 @@ pub use self::if_arc::*;
 #[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
 mod if_arc {
     use super::*;
-    use core::marker::PhantomData;
-    use core::mem;
-    use core::ptr::{self, NonNull};
+    use core::{
+        marker::PhantomData,
+        mem,
+        ptr::{self, NonNull},
+    };
     use crate::sync::Arc;
 
     /// A way of waking up a specific task.