]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/collections/vec_deque/mod.rs
refactor: VecDeques IntoIter fields to private
[rust.git] / library / alloc / src / collections / vec_deque / mod.rs
index e4b28204158d9d3372ade952b5487eb1e96ebfd7..10144cc17bf306579ccc1b4e2272fb86b11a644d 100644 (file)
@@ -2827,7 +2827,7 @@ impl<T, A: Allocator> IntoIterator for VecDeque<T, A> {
     /// Consumes the `VecDeque` into a front-to-back iterator yielding elements by
     /// value.
     fn into_iter(self) -> IntoIter<T, A> {
-        IntoIter { inner: self }
+        IntoIter::new(self)
     }
 }