Fix implementation to specialize
This commit is contained in:
parent
f45bdcce69
commit
c3e47d974a
1 changed files with 1 additions and 1 deletions
|
@ -2480,7 +2480,7 @@ impl<R: Read> Iterator for Bytes<R> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "bufreader_size_hint", since = "1.51.0")]
|
#[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>) {
|
fn size_hint(&self) -> (usize, Option<usize>) {
|
||||||
(self.inner.buffer().len(), None)
|
(self.inner.buffer().len(), None)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue