Fix implementation to specialize

This commit is contained in:
Xavientois 2021-01-15 14:43:20 -05:00
parent f45bdcce69
commit c3e47d974a

View File

@ -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)
}