Skip to content

Commit

Permalink
Fix return type of Chunk::refs
Browse files Browse the repository at this point in the history
I think this is not a breaking change (or at least _very_ hard to observe) because of
- `ExactSizeIterator: Iterator`
- `impl<I: Iterator> IntoIterator for I {}`
  • Loading branch information
laurmaedje committed Sep 27, 2024
1 parent b9ebb20 commit b8f07d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Chunk {

/// An iterator over the references of the top-level objects
/// of the chunk, in the order they appear in the chunk.
pub fn refs(&self) -> impl IntoIterator<Item = Ref> + '_ {
pub fn refs(&self) -> impl ExactSizeIterator<Item = Ref> + '_ {
self.offsets.iter().map(|&(id, _)| id)
}

Expand Down

0 comments on commit b8f07d6

Please sign in to comment.