about summary refs log tree commit diff
path: root/library/std/src/sys/pal
diff options
context:
space:
mode:
authorJan Starke <7724055+janstarke@users.noreply.github.com>2024-02-27 17:45:20 +0100
committerGitHub <noreply@github.com>2024-02-27 17:45:20 +0100
commit7e10a5c7247d502bb9f9192c8337d822e9312867 (patch)
treece352cdbcbecef5e0371504cc7769b0b06bfcd75 /library/std/src/sys/pal
parentb6e4299415646106095a7c3ca71aba9d174ee4ea (diff)
downloadrust-7e10a5c7247d502bb9f9192c8337d822e9312867.tar.gz
rust-7e10a5c7247d502bb9f9192c8337d822e9312867.zip
handle unavailable creation time as `io::ErrorKind::Unsupported`
Diffstat (limited to 'library/std/src/sys/pal')
-rw-r--r--library/std/src/sys/pal/unix/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index 086cdfe6e94..422a99380cc 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -576,7 +576,7 @@ impl FileAttr {
                     Ok(SystemTime::new(ext.stx_btime.tv_sec, ext.stx_btime.tv_nsec as i64))
                 } else {
                     Err(io::const_io_error!(
-                        io::ErrorKind::Uncategorized,
+                        io::ErrorKind::Unsupported,
                         "creation time is not available for the filesystem",
                     ))
                 };