Skip to content

Commit

Permalink
Fix FilterMapResults::size_hint
Browse files Browse the repository at this point in the history
  • Loading branch information
gin-ahirsch committed Mar 13, 2020
1 parent cad46e7 commit 8e5d84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptors/mod.rs
Expand Up @@ -1225,7 +1225,7 @@ impl<I, F, T, U, E> Iterator for FilterMapResults<I, F>
}

fn size_hint(&self) -> (usize, Option<usize>) {
self.iter.size_hint()
(0, self.iter.size_hint().1)
}

fn fold<Acc, Fold>(self, init: Acc, mut fold_f: Fold) -> Acc
Expand Down

0 comments on commit 8e5d84a

Please sign in to comment.