Skip to content

Commit

Permalink
Rollup merge of #121691 - janstarke:handle-missing-creation-time-as-u…
Browse files Browse the repository at this point in the history
…nsupported, r=cuviper

handle unavailable creation time as `io::ErrorKind::Unsupported`
  • Loading branch information
GuillaumeGomez authored Feb 28, 2024
2 parents a0027e8 + 7e10a5c commit 2492f93
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 2492f93

Please sign in to comment.