Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
  • Loading branch information
chipshort and webmaster128 authored Aug 15, 2023
1 parent 6b3e577 commit 95470d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/std/src/coins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ impl Iterator for CoinsIntoIter {
}

fn size_hint(&self) -> (usize, Option<usize>) {
// Since btree_map::IntoIter implements ExactSizeIterator, this is guaranteed to return the exact length
self.0.size_hint()
}
}
Expand Down Expand Up @@ -291,6 +292,7 @@ impl<'a> Iterator for CoinsIter<'a> {
}

fn size_hint(&self) -> (usize, Option<usize>) {
// Since btree_map::Iter implements ExactSizeIterator, this is guaranteed to return the exact length
self.0.size_hint()
}
}
Expand Down

0 comments on commit 95470d4

Please sign in to comment.