Skip to content

Commit 7934d52

Browse files
committed
implement ExactSizeIterator for linked_list::IntoIter
1 parent 64532f7 commit 7934d52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcollections/linked_list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,8 @@ impl<A> DoubleEndedIterator for IntoIter<A> {
832832
fn next_back(&mut self) -> Option<A> { self.list.pop_back() }
833833
}
834834

835+
impl<A> ExactSizeIterator for IntoIter<A> {}
836+
835837
#[stable(feature = "rust1", since = "1.0.0")]
836838
impl<A> FromIterator<A> for LinkedList<A> {
837839
fn from_iter<T: IntoIterator<Item=A>>(iter: T) -> LinkedList<A> {

0 commit comments

Comments
 (0)