Remove exposing private trait

This commit is contained in:
Xavientois 2021-01-15 20:02:55 -05:00
parent 442de9ac45
commit 1190321b76

View file

@ -2459,7 +2459,7 @@ pub struct Bytes<R> {
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<R: Read + SizeHint> Iterator for Bytes<R> {
impl<R: Read> Iterator for Bytes<R> {
type Item = Result<u8>;
fn next(&mut self) -> Option<Result<u8>> {
@ -2475,7 +2475,7 @@ impl<R: Read + SizeHint> Iterator for Bytes<R> {
}
default fn size_hint(&self) -> (usize, Option<usize>) {
self.inner.size_hint()
(&self.inner as &SizeHint).size_hint()
}
}