Skip to content

Commit 421b40c

Browse files
committed
Add dyn for SizeHint cast
1 parent 1190321 commit 421b40c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,7 @@ impl<R: Read> Iterator for Bytes<R> {
24752475
}
24762476

24772477
default fn size_hint(&self) -> (usize, Option<usize>) {
2478-
(&self.inner as &SizeHint).size_hint()
2478+
(&self.inner as &dyn SizeHint).size_hint()
24792479
}
24802480
}
24812481

0 commit comments

Comments
 (0)