@@ -272,19 +272,11 @@ impl<'test> TestCx<'test> {
272272 Ui | MirOpt => false ,
273273 mode => panic ! ( "unimplemented for mode {:?}" , mode) ,
274274 } ;
275- if test_should_run {
276- self . run_if_enabled ( )
277- } else {
278- WillExecute :: No
279- }
275+ if test_should_run { self . run_if_enabled ( ) } else { WillExecute :: No }
280276 }
281277
282278 fn run_if_enabled ( & self ) -> WillExecute {
283- if self . config . run_enabled ( ) {
284- WillExecute :: Yes
285- } else {
286- WillExecute :: Disabled
287- }
279+ if self . config . run_enabled ( ) { WillExecute :: Yes } else { WillExecute :: Disabled }
288280 }
289281
290282 fn should_run_successfully ( & self , pm : Option < PassMode > ) -> bool {
@@ -2693,11 +2685,7 @@ impl<'test> TestCx<'test> {
26932685 /// The revision, ignored for incremental compilation since it wants all revisions in
26942686 /// the same directory.
26952687 fn safe_revision ( & self ) -> Option < & str > {
2696- if self . config . mode == Incremental {
2697- None
2698- } else {
2699- self . revision
2700- }
2688+ if self . config . mode == Incremental { None } else { self . revision }
27012689 }
27022690
27032691 /// Gets the absolute path to the directory where all output for the given
@@ -2920,11 +2908,7 @@ impl<'test> TestCx<'test> {
29202908
29212909 fn charset ( ) -> & ' static str {
29222910 // FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
2923- if cfg ! ( target_os = "freebsd" ) {
2924- "ISO-8859-1"
2925- } else {
2926- "UTF-8"
2927- }
2911+ if cfg ! ( target_os = "freebsd" ) { "ISO-8859-1" } else { "UTF-8" }
29282912 }
29292913
29302914 fn run_rustdoc_test ( & self ) {
@@ -4715,11 +4699,7 @@ impl<'test> TestCx<'test> {
47154699 for output_file in files {
47164700 println ! ( "Actual {} saved to {}" , kind, output_file. display( ) ) ;
47174701 }
4718- if self . config . bless {
4719- 0
4720- } else {
4721- 1
4722- }
4702+ if self . config . bless { 0 } else { 1 }
47234703 }
47244704
47254705 fn check_and_prune_duplicate_outputs (
0 commit comments