Skip to content

Commit 7897a18

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 fa6b186 + 2bd8808 commit 7897a18

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)