diff options
| author | Jan Starke <7724055+janstarke@users.noreply.github.com> | 2024-02-27 17:45:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 17:45:20 +0100 |
| commit | 7e10a5c7247d502bb9f9192c8337d822e9312867 (patch) | |
| tree | ce352cdbcbecef5e0371504cc7769b0b06bfcd75 /library/std/src/sys/pal | |
| parent | b6e4299415646106095a7c3ca71aba9d174ee4ea (diff) | |
| download | rust-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.rs | 2 |
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", )) }; |
