about summary refs log tree commit diff
path: root/src/liballoc/str.rs
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-14 08:13:28 +0900
committerMike Hommey <mh@glandium.org>2018-04-14 08:43:13 +0900
commitbd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7 (patch)
treef91a9ff37c528581e22c292b854ded5a7d1afafd /src/liballoc/str.rs
parent9c2bfcbea2d7fff10e608b495d76f24f441999b9 (diff)
downloadrust-bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7.tar.gz
rust-bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7.zip
Cleanup liballoc use statements
Some modules were still using the deprecated `allocator` module, use the
`alloc` module instead.

Some modules were using `super` while it's not needed.

Some modules were more or less ordering them, and other not, so the
latter have been modified to match the others.
Diffstat (limited to 'src/liballoc/str.rs')
-rw-r--r--src/liballoc/str.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/str.rs b/src/liballoc/str.rs
index 65df93bd3bb..6c9f3dd7ec9 100644
--- a/src/liballoc/str.rs
+++ b/src/liballoc/str.rs
@@ -46,12 +46,12 @@ use core::mem;
 use core::ptr;
 use core::iter::FusedIterator;
 
-use vec_deque::VecDeque;
 use borrow::{Borrow, ToOwned};
+use boxed::Box;
+use slice::{SliceConcatExt, SliceIndex};
 use string::String;
 use vec::Vec;
-use slice::{SliceConcatExt, SliceIndex};
-use boxed::Box;
+use vec_deque::VecDeque;
 
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::str::{FromStr, Utf8Error};