Skip to content

Commit b8f07d6

Browse files
committed
Fix return type of Chunk::refs
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 {}`
1 parent b9ebb20 commit b8f07d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/chunk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Chunk {
4949

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

0 commit comments

Comments
 (0)