diff options
| author | Xavientois <joshua.rampersad@hotmail.com> | 2021-01-15 14:43:20 -0500 |
|---|---|---|
| committer | Xavientois <joshua.rampersad@hotmail.com> | 2021-01-31 08:31:34 -0500 |
| commit | c3e47d974ab1c1c4d4b00989631586e60d78b554 (patch) | |
| tree | f3b0cd506077e57fc8e9bfe2d45e531e354be858 | |
| parent | f45bdcce69c754a3e5308b71c810e233a100f65c (diff) | |
| download | rust-c3e47d974ab1c1c4d4b00989631586e60d78b554.tar.gz rust-c3e47d974ab1c1c4d4b00989631586e60d78b554.zip | |
Fix implementation to specialize
| -rw-r--r-- | library/std/src/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 0fc99baa666..e02ee58cdbc 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -2480,7 +2480,7 @@ impl<R: Read> Iterator for Bytes<R> { } #[stable(feature = "bufreader_size_hint", since = "1.51.0")] -impl<T> Iterator for Bytes<BufReader<T>> { +impl<R: Read> Iterator for Bytes<BufReader<R>> { fn size_hint(&self) -> (usize, Option<usize>) { (self.inner.buffer().len(), None) } |
