Skip to content

Commit 7e10a5c

Browse files
authored
handle unavailable creation time as io::ErrorKind::Unsupported
1 parent b6e4299 commit 7e10a5c

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)