@@ -856,13 +856,13 @@ impl Fingerprint {
856
856
/// an error, it will never return success.
857
857
fn compare ( & self , old : & Fingerprint ) -> DirtyReason {
858
858
if self . rustc != old. rustc {
859
- return DirtyReason :: RustcChanged
859
+ return DirtyReason :: RustcChanged ;
860
860
}
861
861
if self . features != old. features {
862
862
return DirtyReason :: FeaturesChanged {
863
863
old : old. features . clone ( ) ,
864
864
new : self . features . clone ( ) ,
865
- }
865
+ } ;
866
866
}
867
867
if self . target != old. target {
868
868
return DirtyReason :: TargetConfigurationChanged ;
@@ -961,10 +961,12 @@ impl Fingerprint {
961
961
} ;
962
962
}
963
963
}
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
+ }
968
970
}
969
971
}
970
972
@@ -1700,21 +1702,21 @@ fn compare_old_fingerprint(
1700
1702
1701
1703
fn log_compare ( unit : & Unit , compare : & CargoResult < Option < DirtyReason > > ) {
1702
1704
match compare {
1703
- Ok ( None ) => { } ,
1705
+ Ok ( None ) => { }
1704
1706
Ok ( Some ( reason) ) => {
1705
1707
info ! (
1706
1708
"fingerprint dirty for {}/{:?}/{:?}" ,
1707
1709
unit. pkg, unit. mode, unit. target,
1708
1710
) ;
1709
1711
info ! ( " dirty: {reason:?}" ) ;
1710
- } ,
1712
+ }
1711
1713
Err ( e) => {
1712
1714
info ! (
1713
1715
"fingerprint error for {}/{:?}/{:?}" ,
1714
1716
unit. pkg, unit. mode, unit. target,
1715
1717
) ;
1716
1718
info ! ( " err: {e:?}" ) ;
1717
- } ,
1719
+ }
1718
1720
}
1719
1721
}
1720
1722
0 commit comments