We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54fa28 commit 5123b23Copy full SHA for 5123b23
src/libstd/fs.rs
@@ -450,6 +450,8 @@ impl Read for File {
450
}
451
452
fn size_snapshot(&self) -> Option<usize> {
453
+ // Ignore I/O errors; we're just querying the size and position of an
454
+ // already-open file in preparation for reading from it.
455
if let Ok(meta) = self.metadata() {
456
let len = meta.len();
457
if let Ok(position) = self.inner.seek(SeekFrom::Current(0)) {
0 commit comments