Skip to content

Commit

Permalink
refactor(chunk): add size_hint to chunk::IntoIter
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 9, 2018
1 parent aa60376 commit 57f0501
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,12 @@ impl Iterator for IntoIter {
fn next(&mut self) -> Option<Self::Item> {
self.inner.next()
}

#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
self.inner.size_hint()
}
}

impl ExactSizeIterator for IntoIter {}

0 comments on commit 57f0501

Please sign in to comment.