Remove Iterator::size_hint() implementation

I'm not sure why the author added this in the first place, but I bet we
don't need this.

So remove code we do not need. Feel free to prove me wrong and revert
this patch.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-03-07 20:51:49 +01:00
parent ae95022202
commit 341e64998d

View file

@ -48,12 +48,6 @@ impl<I, F, T> Iterator for UnwrapWith<I, F>
}
}
}
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
let (_, upper) = self.iter.size_hint();
(0, upper)
}
}