Skip to content

Commit 1190321

Browse files
committed
Remove exposing private trait
1 parent 442de9a commit 1190321

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
@@ -2459,7 +2459,7 @@ pub struct Bytes<R> {
24592459
}
24602460

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

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

24772477
default fn size_hint(&self) -> (usize, Option<usize>) {
2478-
self.inner.size_hint()
2478+
(&self.inner as &SizeHint).size_hint()
24792479
}
24802480
}
24812481

0 commit comments

Comments
 (0)