Skip to content

Commit

Permalink
Merge pull request #26 from axelf4/fix-BlockIter-size_hint
Browse files Browse the repository at this point in the history
Fix BlockIter::size_hint upper bound
  • Loading branch information
pczarn authored Jun 29, 2024
2 parents 5e2075b + f1aac10 commit 51e1efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ where
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
match self.tail.size_hint() {
(_, Some(h)) => (0, Some(1 + h * B::bits())),
(_, Some(h)) => (0, Some((1 + h) * B::bits())),
_ => (0, None),
}
}
Expand Down

0 comments on commit 51e1efb

Please sign in to comment.