We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad20e5 commit 284f4bbCopy full SHA for 284f4bb
library/std/src/io/mod.rs
@@ -2456,7 +2456,7 @@ pub struct Bytes<R> {
2456
}
2457
2458
#[stable(feature = "rust1", since = "1.0.0")]
2459
-impl<R: Read + SizeHint> Iterator for Bytes<R> {
+impl<R: Read> Iterator for Bytes<R> {
2460
type Item = Result<u8>;
2461
2462
fn next(&mut self) -> Option<Result<u8>> {
@@ -2472,7 +2472,7 @@ impl<R: Read + SizeHint> Iterator for Bytes<R> {
2472
2473
2474
default fn size_hint(&self) -> (usize, Option<usize>) {
2475
- self.inner.size_hint()
+ (&self.inner as &SizeHint).size_hint()
2476
2477
2478
0 commit comments