about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXavientois <joshua.rampersad@hotmail.com>2021-01-15 14:43:20 -0500
committerXavientois <joshua.rampersad@hotmail.com>2021-01-31 08:31:34 -0500
commitc3e47d974ab1c1c4d4b00989631586e60d78b554 (patch)
treef3b0cd506077e57fc8e9bfe2d45e531e354be858
parentf45bdcce69c754a3e5308b71c810e233a100f65c (diff)
downloadrust-c3e47d974ab1c1c4d4b00989631586e60d78b554.tar.gz
rust-c3e47d974ab1c1c4d4b00989631586e60d78b554.zip
Fix implementation to specialize
-rw-r--r--library/std/src/io/mod.rs2
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)
     }