@@ -280,19 +280,11 @@ impl<'test> TestCx<'test> {
280280 Ui | MirOpt => false ,
281281 mode => panic ! ( "unimplemented for mode {:?}" , mode) ,
282282 } ;
283- if test_should_run {
284- self . run_if_enabled ( )
285- } else {
286- WillExecute :: No
287- }
283+ if test_should_run { self . run_if_enabled ( ) } else { WillExecute :: No }
288284 }
289285
290286 fn run_if_enabled ( & self ) -> WillExecute {
291- if self . config . run_enabled ( ) {
292- WillExecute :: Yes
293- } else {
294- WillExecute :: Disabled
295- }
287+ if self . config . run_enabled ( ) { WillExecute :: Yes } else { WillExecute :: Disabled }
296288 }
297289
298290 fn should_run_successfully ( & self , pm : Option < PassMode > ) -> bool {
@@ -2451,11 +2443,7 @@ impl<'test> TestCx<'test> {
24512443 /// The revision, ignored for incremental compilation since it wants all revisions in
24522444 /// the same directory.
24532445 fn safe_revision ( & self ) -> Option < & str > {
2454- if self . config . mode == Incremental {
2455- None
2456- } else {
2457- self . revision
2458- }
2446+ if self . config . mode == Incremental { None } else { self . revision }
24592447 }
24602448
24612449 /// Gets the absolute path to the directory where all output for the given
@@ -2679,11 +2667,7 @@ impl<'test> TestCx<'test> {
26792667
26802668 fn charset ( ) -> & ' static str {
26812669 // FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
2682- if cfg ! ( target_os = "freebsd" ) {
2683- "ISO-8859-1"
2684- } else {
2685- "UTF-8"
2686- }
2670+ if cfg ! ( target_os = "freebsd" ) { "ISO-8859-1" } else { "UTF-8" }
26872671 }
26882672
26892673 fn run_rustdoc_test ( & self ) {
@@ -4506,11 +4490,7 @@ impl<'test> TestCx<'test> {
45064490 for output_file in files {
45074491 println ! ( "Actual {} saved to {}" , kind, output_file. display( ) ) ;
45084492 }
4509- if self . config . bless {
4510- 0
4511- } else {
4512- 1
4513- }
4493+ if self . config . bless { 0 } else { 1 }
45144494 }
45154495
45164496 fn check_and_prune_duplicate_outputs (
0 commit comments