Skip to content

Commit af4be91

Browse files
committed
Add dyn for SizeHint cast
1 parent 284f4bb commit af4be91

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
@@ -2472,7 +2472,7 @@ impl<R: Read> Iterator for Bytes<R> {
24722472
}
24732473

24742474
default fn size_hint(&self) -> (usize, Option<usize>) {
2475-
(&self.inner as &SizeHint).size_hint()
2475+
(&self.inner as &dyn SizeHint).size_hint()
24762476
}
24772477
}
24782478

0 commit comments

Comments
 (0)