File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -673,10 +673,7 @@ async fn categorize_benchmark(
673
673
. map ( |( benchmark, _) | format ! ( "- {benchmark}" ) )
674
674
. collect :: < Vec < _ > > ( )
675
675
. join ( "\n " ) ;
676
- format ! (
677
- "\n **Warning ⚠**: The following benchmark(s) failed to build:\n {}\n " ,
678
- benchmarks,
679
- )
676
+ format ! ( "\n **Warning ⚠**: The following benchmark(s) failed to build:\n {benchmarks}\n " )
680
677
} else {
681
678
String :: new ( )
682
679
} ;
@@ -686,13 +683,11 @@ async fn categorize_benchmark(
686
683
687
684
const DISAGREEMENT : & str = "If you disagree with this performance assessment, \
688
685
please file an issue in [rust-lang/rustc-perf](https://github.com/rust-lang/rustc-perf/issues/new).";
686
+ let footer = format ! ( "{DISAGREEMENT}{errors}" ) ;
689
687
690
688
if primary. is_none ( ) && secondary. is_none ( ) {
691
689
return (
692
- format ! (
693
- "This benchmark run did not return any relevant results.\n \n {}{}" ,
694
- DISAGREEMENT , errors
695
- ) ,
690
+ format ! ( "This benchmark run did not return any relevant results.\n \n {footer}" ) ,
696
691
None ,
697
692
) ;
698
693
}
@@ -718,7 +713,7 @@ async fn categorize_benchmark(
718
713
write_summary_table ( & primary, & secondary, true , & mut result) ;
719
714
}
720
715
721
- write ! ( result, "\n {} {}" , DISAGREEMENT , errors ) . unwrap ( ) ;
716
+ write ! ( result, "\n {footer}" ) . unwrap ( ) ;
722
717
723
718
let direction = primary_direction. or ( secondary_direction) ;
724
719
( result, direction)
You can’t perform that action at this time.
0 commit comments