Skip to content

Commit 7c8ee49

Browse files
committed
cargo fmt
1 parent ef0951e commit 7c8ee49

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/cargo/core/compiler/fingerprint.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -856,13 +856,13 @@ impl Fingerprint {
856856
/// an error, it will never return success.
857857
fn compare(&self, old: &Fingerprint) -> DirtyReason {
858858
if self.rustc != old.rustc {
859-
return DirtyReason::RustcChanged
859+
return DirtyReason::RustcChanged;
860860
}
861861
if self.features != old.features {
862862
return DirtyReason::FeaturesChanged {
863863
old: old.features.clone(),
864864
new: self.features.clone(),
865-
}
865+
};
866866
}
867867
if self.target != old.target {
868868
return DirtyReason::TargetConfigurationChanged;
@@ -961,10 +961,12 @@ impl Fingerprint {
961961
};
962962
}
963963
}
964-
(a, b) => return DirtyReason::LocalFingerprintTypeChanged {
965-
old: b.kind(),
966-
new: a.kind(),
967-
},
964+
(a, b) => {
965+
return DirtyReason::LocalFingerprintTypeChanged {
966+
old: b.kind(),
967+
new: a.kind(),
968+
}
969+
}
968970
}
969971
}
970972

@@ -1700,21 +1702,21 @@ fn compare_old_fingerprint(
17001702

17011703
fn log_compare(unit: &Unit, compare: &CargoResult<Option<DirtyReason>>) {
17021704
match compare {
1703-
Ok(None) => {},
1705+
Ok(None) => {}
17041706
Ok(Some(reason)) => {
17051707
info!(
17061708
"fingerprint dirty for {}/{:?}/{:?}",
17071709
unit.pkg, unit.mode, unit.target,
17081710
);
17091711
info!(" dirty: {reason:?}");
1710-
},
1712+
}
17111713
Err(e) => {
17121714
info!(
17131715
"fingerprint error for {}/{:?}/{:?}",
17141716
unit.pkg, unit.mode, unit.target,
17151717
);
17161718
info!(" err: {e:?}");
1717-
},
1719+
}
17181720
}
17191721
}
17201722

0 commit comments

Comments
 (0)