From 7e10a5c7247d502bb9f9192c8337d822e9312867 Mon Sep 17 00:00:00 2001 From: Jan Starke <7724055+janstarke@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:45:20 +0100 Subject: [PATCH] handle unavailable creation time as `io::ErrorKind::Unsupported` --- library/std/src/sys/pal/unix/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs index 086cdfe6e9434..422a99380cc59 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", )) };