about summary refs log tree commit diff
path: root/library/alloc/src/collections
diff options
context:
space:
mode:
authorMuhammad Mominul Huque <mominul2082@gmail.com>2021-05-30 23:16:45 +0600
committerMuhammad Mominul Huque <mominul2082@gmail.com>2021-06-02 16:09:04 +0600
commit01d4d46f66929122cc890279cde4765df7a0a90f (patch)
treef03fb1793be56f1aa7e5a062cf93715a8ad436bf /library/alloc/src/collections
parentd20b9add05d32761abad651f568f1b1831cb8cf6 (diff)
downloadrust-01d4d46f66929122cc890279cde4765df7a0a90f.tar.gz
rust-01d4d46f66929122cc890279cde4765df7a0a90f.zip
Replace IntoIter::new with IntoIterator::into_iter in std
Diffstat (limited to 'library/alloc/src/collections')
-rw-r--r--library/alloc/src/collections/vec_deque/pair_slices.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/collections/vec_deque/pair_slices.rs b/library/alloc/src/collections/vec_deque/pair_slices.rs
index 812765d0b0d..7b87090fb07 100644
--- a/library/alloc/src/collections/vec_deque/pair_slices.rs
+++ b/library/alloc/src/collections/vec_deque/pair_slices.rs
@@ -1,4 +1,3 @@
-use core::array;
 use core::cmp::{self};
 use core::mem::replace;
 
@@ -37,7 +36,7 @@ impl<'a, 'b, T> PairSlices<'a, 'b, T> {
     }
 
     pub fn remainder(self) -> impl Iterator<Item = &'b [T]> {
-        array::IntoIter::new([self.b0, self.b1])
+        IntoIterator::into_iter([self.b0, self.b1])
     }
 }