Skip to content

Commit 2492f93

Browse files
Rollup merge of rust-lang#121691 - janstarke:handle-missing-creation-time-as-unsupported, r=cuviper
handle unavailable creation time as `io::ErrorKind::Unsupported`
2 parents a0027e8 + 7e10a5c commit 2492f93

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ impl FileAttr {
576576
Ok(SystemTime::new(ext.stx_btime.tv_sec, ext.stx_btime.tv_nsec as i64))
577577
} else {
578578
Err(io::const_io_error!(
579-
io::ErrorKind::Uncategorized,
579+
io::ErrorKind::Unsupported,
580580
"creation time is not available for the filesystem",
581581
))
582582
};

0 commit comments

Comments
 (0)