diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 10:14:40 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 10:14:40 +0100 |
| commit | 7693e3e6662c2ae8aa24d69434161f501d855420 (patch) | |
| tree | 753f7af71b4aa6cef036bd3ed388644cf895e42e /src/liballoc/slice.rs | |
| parent | e6e27924e17aa7def20ecaf88abc18ead6d97f93 (diff) | |
| download | rust-7693e3e6662c2ae8aa24d69434161f501d855420.tar.gz rust-7693e3e6662c2ae8aa24d69434161f501d855420.zip | |
liballoc: refactor & fix some imports.
Diffstat (limited to 'src/liballoc/slice.rs')
| -rw-r--r-- | src/liballoc/slice.rs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index 0ed8aa6a2e4..1cee3aa415b 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -87,15 +87,18 @@ // It's cleaner to just turn off the unused_imports warning than to fix them. #![cfg_attr(test, allow(unused_imports, dead_code))] -use core::cmp::Ordering::{self, Less}; -use core::mem::size_of; -use core::mem; -use core::ptr; -use core::{u8, u16, u32}; - -use crate::borrow::{Borrow, BorrowMut, ToOwned}; -use crate::boxed::Box; -use crate::vec::Vec; +use core::{ + cmp::Ordering::{self, Less}, + mem::{self, size_of}, + ptr, + u8, u16, u32, +}; + +use crate::{ + borrow::{Borrow, BorrowMut, ToOwned}, + boxed::Box, + vec::Vec, +}; #[stable(feature = "rust1", since = "1.0.0")] pub use core::slice::{Chunks, Windows}; |
