Skip to content

Commit

Permalink
handle unavailable creation time as io::ErrorKind::Unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
janstarke authored Feb 27, 2024
1 parent b6e4299 commit 7e10a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
))
};
Expand Down

0 comments on commit 7e10a5c

Please sign in to comment.