File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -532,11 +532,10 @@ pub fn write_summary_table(
532
532
. relevant_comparisons
533
533
. first ( )
534
534
. or ( secondary. relevant_comparisons . first ( ) )
535
- . map ( |m| m. metric . as_str ( ) )
535
+ . map ( |m| format ! ( "({})" , m. metric. as_str( ) ) )
536
536
} )
537
537
. flatten ( )
538
- // we want at least 10 spaces to accommodate "count[^2]"
539
- . unwrap_or ( " " ) ;
538
+ . unwrap_or_else ( || String :: from ( " " ) ) ;
540
539
541
540
fn render_stat < F : FnOnce ( ) -> Option < f64 > > ( count : usize , calculate : F ) -> String {
542
541
let value = if count > 0 { calculate ( ) } else { None } ;
@@ -640,7 +639,7 @@ pub fn write_summary_table(
640
639
// This code attempts to space the table cells evenly so that the data is
641
640
// easy to read for anyone who is viewing the Markdown source.
642
641
let column_labels = [
643
- format ! ( "({ metric})" ) ,
642
+ metric,
644
643
format ! ( "mean{}" , if with_footnotes { "[^1]" } else { "" } ) ,
645
644
"max" . to_string ( ) ,
646
645
format ! ( "count{}" , if with_footnotes { "[^2]" } else { "" } ) ,
You can’t perform that action at this time.
0 commit comments