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 @@ fn next(&mut self) -> Option<Result<u8>> {
}
default fn size_hint(&self) -> (usize, Option<usize>) {
(&self.inner as &SizeHint).size_hint()
(&self.inner as &dyn SizeHint).size_hint()
}
}