about summary refs log tree commit diff
path: root/src/liballoc/vec_deque.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/vec_deque.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/vec_deque.rs')
-rw-r--r--src/liballoc/vec_deque.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/liballoc/vec_deque.rs b/src/liballoc/vec_deque.rs
index f28c8e38996..603e38ca2ca 100644
--- a/src/liballoc/vec_deque.rs
+++ b/src/liballoc/vec_deque.rs
@@ -30,10 +30,9 @@ use core::slice;
 use core::hash::{Hash, Hasher};
 use core::cmp;
 
+use alloc::CollectionAllocErr;
 use raw_vec::RawVec;
-
-use super::allocator::CollectionAllocErr;
-use super::vec::Vec;
+use vec::Vec;
 
 const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
 const MINIMUM_CAPACITY: usize = 1; // 2 - 1