Skip to content

Commit

Permalink
fix: correctly delegate Stream::size_hint to the inner Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Mar 8, 2024
1 parent 7d0f0ab commit f64d9f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stream_stopper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ impl<S: Stream> Stream for StreamStopper<S> {
};
}
}

fn size_hint(&self) -> (usize, Option<usize>) {
self.stream.size_hint()
}
}

0 comments on commit f64d9f6

Please sign in to comment.