Skip to content

Commit a273cb8

Browse files
committed
Remove redundant size_hint implementations
1 parent 275e012 commit a273cb8

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/adaptors/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,6 @@ impl<B, F, I> Iterator for Batching<I, F>
403403
fn next(&mut self) -> Option<Self::Item> {
404404
(self.f)(&mut self.iter)
405405
}
406-
407-
#[inline]
408-
fn size_hint(&self) -> (usize, Option<usize>) {
409-
// No information about closue behavior
410-
(0, None)
411-
}
412406
}
413407

414408
/// An iterator adaptor that steps a number elements in the base iterator

src/sources.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ impl<A, St, F> Iterator for Unfold<St, F>
131131
fn next(&mut self) -> Option<Self::Item> {
132132
(self.f)(&mut self.state)
133133
}
134-
135-
#[inline]
136-
fn size_hint(&self) -> (usize, Option<usize>) {
137-
// no possible known bounds at this point
138-
(0, None)
139-
}
140134
}
141135

142136
/// An iterator that infinitely applies function to value and yields results.

0 commit comments

Comments
 (0)