Skip to content

Commit

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

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

Please sign in to comment.