This commit is contained in:
Lokathor
2020-02-10 19:52:15 -07:00
parent e95311a477
commit 49a26a2bd5
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -808,6 +808,7 @@ impl<'p, A: Array> Iterator for ArrayVecDrain<'p, A> {
}
}
}
impl<'p, A: Array> FusedIterator for ArrayVecDrain<'p, A> { }
impl<'p, A: Array> Drop for ArrayVecDrain<'p, A> {
#[inline]
fn drop(&mut self) {
@@ -901,7 +902,7 @@ impl<A: Array> ArrayVecIterator<A> {
&self.data.as_slice()[self.base..self.len]
}
}
impl<A: Array> FusedIterator for ArrayVecIterator<A> { }
impl<A: Array> Iterator for ArrayVecIterator<A> {
type Item = A::Item;
#[inline]
+1 -1
View File
@@ -68,7 +68,7 @@ use core::{
UpperExp, UpperHex,
},
hash::{Hash, Hasher},
iter::{Extend, FromIterator, IntoIterator, Iterator},
iter::{Extend, FromIterator, FusedIterator, IntoIterator, Iterator},
mem::{needs_drop, replace},
ops::{Deref, DerefMut, Index, IndexMut, RangeBounds},
slice::SliceIndex,
+2 -1
View File
@@ -639,6 +639,7 @@ pub struct TinyVecDrain<'p, A: Array> {
target_index: usize,
target_count: usize,
}
impl<'p, A: Array> FusedIterator for TinyVecDrain<'p, A> { }
impl<'p, A: Array> Iterator for TinyVecDrain<'p, A> {
type Item = A::Item;
#[inline]
@@ -770,7 +771,7 @@ impl<A: Array> TinyVecIterator<A> {
}
}
}
impl<'p, A: Array> FusedIterator for TinyVecIterator<'p, A> { }
impl<A: Array> Iterator for TinyVecIterator<A> {
type Item = A::Item;
#[inline]