Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Dec 29, 2020
1 parent 1110837 commit 4538ade
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/cargo/core/compiler/fingerprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,15 +853,23 @@ impl Fingerprint {
match (new, old) {
(LocalFingerprint::Precalculated(a), LocalFingerprint::Precalculated(b)) => {
if a != b {
bail!("precalculated components have changed: previously {}, now {}", b, a)
bail!(
"precalculated components have changed: previously {}, now {}",
b,
a
)
}
}
(
LocalFingerprint::CheckDepInfo { dep_info: adep },
LocalFingerprint::CheckDepInfo { dep_info: bdep },
) => {
if adep != bdep {
bail!("dep info output changed: previously {:?}, now {:?}", bdep, adep)
bail!(
"dep info output changed: previously {:?}, now {:?}",
bdep,
adep
)
}
}
(
Expand All @@ -875,7 +883,11 @@ impl Fingerprint {
},
) => {
if aout != bout {
bail!("rerun-if-changed output changed: previously {:?}, now {:?}", bout, aout)
bail!(
"rerun-if-changed output changed: previously {:?}, now {:?}",
bout,
aout
)
}
if apaths != bpaths {
bail!(
Expand Down

0 comments on commit 4538ade

Please sign in to comment.