Add dyn for SizeHint cast
This commit is contained in:
parent
1190321b76
commit
421b40cd6a
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue