Skip to content

Commit 284f4bb

Browse files
committed
Remove exposing private trait
1 parent 3ad20e5 commit 284f4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ pub struct Bytes<R> {
24562456
}
24572457

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

24622462
fn next(&mut self) -> Option<Result<u8>> {
@@ -2472,7 +2472,7 @@ impl<R: Read + SizeHint> Iterator for Bytes<R> {
24722472
}
24732473

24742474
default fn size_hint(&self) -> (usize, Option<usize>) {
2475-
self.inner.size_hint()
2475+
(&self.inner as &SizeHint).size_hint()
24762476
}
24772477
}
24782478

0 commit comments

Comments
 (0)