Add dyn for SizeHint cast

This commit is contained in:
Xavientois 2021-01-15 20:09:43 -05:00
parent 1190321b76
commit 421b40cd6a

View file

@ -2475,7 +2475,7 @@ impl<R: Read> Iterator for Bytes<R> {
}
default fn size_hint(&self) -> (usize, Option<usize>) {
(&self.inner as &SizeHint).size_hint()
(&self.inner as &dyn SizeHint).size_hint()
}
}