@@ -272,11 +272,19 @@ impl<'test> TestCx<'test> {
272
272
Ui | MirOpt => false ,
273
273
mode => panic ! ( "unimplemented for mode {:?}" , mode) ,
274
274
} ;
275
- if test_should_run { self . run_if_enabled ( ) } else { WillExecute :: No }
275
+ if test_should_run {
276
+ self . run_if_enabled ( )
277
+ } else {
278
+ WillExecute :: No
279
+ }
276
280
}
277
281
278
282
fn run_if_enabled ( & self ) -> WillExecute {
279
- if self . config . run_enabled ( ) { WillExecute :: Yes } else { WillExecute :: Disabled }
283
+ if self . config . run_enabled ( ) {
284
+ WillExecute :: Yes
285
+ } else {
286
+ WillExecute :: Disabled
287
+ }
280
288
}
281
289
282
290
fn should_run_successfully ( & self , pm : Option < PassMode > ) -> bool {
@@ -2685,7 +2693,11 @@ impl<'test> TestCx<'test> {
2685
2693
/// The revision, ignored for incremental compilation since it wants all revisions in
2686
2694
/// the same directory.
2687
2695
fn safe_revision ( & self ) -> Option < & str > {
2688
- if self . config . mode == Incremental { None } else { self . revision }
2696
+ if self . config . mode == Incremental {
2697
+ None
2698
+ } else {
2699
+ self . revision
2700
+ }
2689
2701
}
2690
2702
2691
2703
/// Gets the absolute path to the directory where all output for the given
@@ -2908,7 +2920,11 @@ impl<'test> TestCx<'test> {
2908
2920
2909
2921
fn charset ( ) -> & ' static str {
2910
2922
// FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
2911
- if cfg ! ( target_os = "freebsd" ) { "ISO-8859-1" } else { "UTF-8" }
2923
+ if cfg ! ( target_os = "freebsd" ) {
2924
+ "ISO-8859-1"
2925
+ } else {
2926
+ "UTF-8"
2927
+ }
2912
2928
}
2913
2929
2914
2930
fn run_rustdoc_test ( & self ) {
@@ -4699,7 +4715,11 @@ impl<'test> TestCx<'test> {
4699
4715
for output_file in files {
4700
4716
println ! ( "Actual {} saved to {}" , kind, output_file. display( ) ) ;
4701
4717
}
4702
- if self . config . bless { 0 } else { 1 }
4718
+ if self . config . bless {
4719
+ 0
4720
+ } else {
4721
+ 1
4722
+ }
4703
4723
}
4704
4724
4705
4725
fn check_and_prune_duplicate_outputs (
0 commit comments