Skip to content

Commit

Permalink
Remove exposing private trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavientois committed Jan 31, 2021
1 parent 442de9a commit 1190321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/io/mod.rs
Expand Up @@ -2459,7 +2459,7 @@ pub struct Bytes<R> {
}

#[stable(feature = "rust1", since = "1.0.0")]
impl<R: Read + SizeHint> Iterator for Bytes<R> {
impl<R: Read> Iterator for Bytes<R> {
type Item = Result<u8>;

fn next(&mut self) -> Option<Result<u8>> {
Expand All @@ -2475,7 +2475,7 @@ impl<R: Read + SizeHint> Iterator for Bytes<R> {
}

default fn size_hint(&self) -> (usize, Option<usize>) {
self.inner.size_hint()
(&self.inner as &SizeHint).size_hint()
}
}

Expand Down

0 comments on commit 1190321

Please sign in to comment.