Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix implementation to specialize
  • Loading branch information
Xavientois committed Jan 15, 2021
commit 1a97be6f95669b709db61e65ec772ee57456d79b
2 changes: 1 addition & 1 deletion library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2477,7 +2477,7 @@ impl<R: Read> Iterator for Bytes<R> {
}

#[stable(feature = "bufreader_size_hint", since = "1.51.0")]
impl<T> Iterator for Bytes<BufReader<T>> {
impl<R: Read> Iterator for Bytes<BufReader<R>> {
fn size_hint(&self) -> (usize, Option<usize>) {
(self.inner.buffer().len(), None)
}
Expand Down