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 442de9a commit 1190321Copy full SHA for 1190321
library/std/src/io/mod.rs
@@ -2459,7 +2459,7 @@ pub struct Bytes<R> {
2459
}
2460
2461
#[stable(feature = "rust1", since = "1.0.0")]
2462
-impl<R: Read + SizeHint> Iterator for Bytes<R> {
+impl<R: Read> Iterator for Bytes<R> {
2463
type Item = Result<u8>;
2464
2465
fn next(&mut self) -> Option<Result<u8>> {
@@ -2475,7 +2475,7 @@ impl<R: Read + SizeHint> Iterator for Bytes<R> {
2475
2476
2477
default fn size_hint(&self) -> (usize, Option<usize>) {
2478
- self.inner.size_hint()
+ (&self.inner as &SizeHint).size_hint()
2479
2480
2481
0 commit comments