@@ -478,9 +478,7 @@ enum LocalFingerprint {
478478 /// The `dep_info` file, when present, also lists a number of other files
479479 /// for us to look at. If any of those files are newer than this file then
480480 /// we need to recompile.
481- CheckDepInfo {
482- dep_info : PathBuf ,
483- } ,
481+ CheckDepInfo { dep_info : PathBuf } ,
484482
485483 /// This represents a nonempty set of `rerun-if-changed` annotations printed
486484 /// out by a build script. The `output` file is a arelative file anchored at
@@ -500,10 +498,7 @@ enum LocalFingerprint {
500498 /// build script. The exact env var and value are hashed here. There's no
501499 /// filesystem dependence here, and if the values are changed the hash will
502500 /// change forcing a recompile.
503- RerunIfEnvChanged {
504- var : String ,
505- val : Option < String > ,
506- } ,
501+ RerunIfEnvChanged { var : String , val : Option < String > } ,
507502}
508503
509504enum StaleFile {
@@ -762,7 +757,7 @@ impl Fingerprint {
762757 let t = FileTime :: from_system_time ( SystemTime :: now ( ) ) ;
763758 drop ( filetime:: set_file_times ( f, t, t) ) ;
764759 }
765- return mtime;
760+ mtime
766761 } )
767762 . min ( ) ;
768763
@@ -1350,7 +1345,7 @@ fn compare_old_fingerprint(
13501345 debug_assert_eq ! ( util:: to_hex( old_fingerprint. hash( ) ) , old_fingerprint_short) ;
13511346 let result = new_fingerprint. compare ( & old_fingerprint) ;
13521347 assert ! ( result. is_err( ) ) ;
1353- return result;
1348+ result
13541349}
13551350
13561351fn log_compare ( unit : & Unit < ' _ > , compare : & CargoResult < ( ) > ) {
@@ -1444,7 +1439,7 @@ where
14441439 } ) ;
14451440 }
14461441
1447- return None ;
1442+ None
14481443}
14491444
14501445fn filename < ' a , ' cfg > ( cx : & mut Context < ' a , ' cfg > , unit : & Unit < ' a > ) -> String {
0 commit comments