Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope committed May 23, 2024
1 parent a199f31 commit 8e2581b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cargo/core/compiler/fingerprint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,8 @@ where
// Additionally, the build can span different volumes, some which support high-precision
// file timestamps and some that don't (e.g. mounted Docker volumes). This can make
// one of the timestamps lose the nanosecond part and appear up to a second in the past.
let truncated_precision = path_mtime.nanoseconds() == 0 || reference_mtime.nanoseconds() == 0;
let truncated_precision =
path_mtime.nanoseconds() == 0 || reference_mtime.nanoseconds() == 0;

let fresh = if truncated_precision {
path_mtime.unix_seconds() <= reference_mtime.unix_seconds()
Expand Down

0 comments on commit 8e2581b

Please sign in to comment.