@@ -812,7 +812,7 @@ impl<'cfg> DrainState<'cfg> {
812
812
) ;
813
813
if !cx. bcx . build_config . build_plan {
814
814
// It doesn't really matter if this fails.
815
- drop ( cx. bcx . config . shell ( ) . status ( "Finished" , message) ) ;
815
+ let _ = cx. bcx . config . shell ( ) . status ( "Finished" , message) ;
816
816
future_incompat:: save_and_display_report (
817
817
cx. bcx ,
818
818
& self . per_package_future_incompat_reports ,
@@ -836,7 +836,7 @@ impl<'cfg> DrainState<'cfg> {
836
836
if new_err. print_always || err_state. count == 0 {
837
837
crate :: display_error ( & new_err. error , shell) ;
838
838
if err_state. count == 0 && !self . active . is_empty ( ) {
839
- drop ( shell. warn ( "build failed, waiting for other jobs to finish..." ) ) ;
839
+ let _ = shell. warn ( "build failed, waiting for other jobs to finish..." ) ;
840
840
}
841
841
err_state. count += 1 ;
842
842
} else {
@@ -863,11 +863,11 @@ impl<'cfg> DrainState<'cfg> {
863
863
. values ( )
864
864
. map ( |u| self . name_for_progress ( u) )
865
865
. collect :: < Vec < _ > > ( ) ;
866
- drop ( self . progress . tick_now (
866
+ let _ = self . progress . tick_now (
867
867
self . finished ,
868
868
self . total_units ,
869
869
& format ! ( ": {}" , active_names. join( ", " ) ) ,
870
- ) ) ;
870
+ ) ;
871
871
}
872
872
873
873
fn name_for_progress ( & self , unit : & Unit ) -> String {
@@ -1005,12 +1005,16 @@ impl<'cfg> DrainState<'cfg> {
1005
1005
message. push_str ( " generated " ) ;
1006
1006
match count. total {
1007
1007
1 => message. push_str ( "1 warning" ) ,
1008
- n => drop ( write ! ( message, "{} warnings" , n) ) ,
1008
+ n => {
1009
+ let _ = write ! ( message, "{} warnings" , n) ;
1010
+ }
1009
1011
} ;
1010
1012
match count. duplicates {
1011
1013
0 => { }
1012
1014
1 => message. push_str ( " (1 duplicate)" ) ,
1013
- n => drop ( write ! ( message, " ({} duplicates)" , n) ) ,
1015
+ n => {
1016
+ let _ = write ! ( message, " ({} duplicates)" , n) ;
1017
+ }
1014
1018
}
1015
1019
// Only show the `cargo fix` message if its a local `Unit`
1016
1020
if unit. is_local ( ) {
@@ -1054,7 +1058,7 @@ impl<'cfg> DrainState<'cfg> {
1054
1058
}
1055
1059
// Errors are ignored here because it is tricky to handle them
1056
1060
// correctly, and they aren't important.
1057
- drop ( config. shell ( ) . warn ( message) ) ;
1061
+ let _ = config. shell ( ) . warn ( message) ;
1058
1062
}
1059
1063
1060
1064
fn finish (
0 commit comments