From 5348ab9ba3048f49071b281ca33a25bed92bd0e6 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Thu, 6 May 2021 22:49:02 +0300 Subject: [PATCH] benchmark.rs: Don't use # in benchmark name Using `Benchmark #1` causes github and gitlab to interrupt hyperfine results as link to issue #1. Remove the # from the benchmark number to play better with these systems. Fixes #381. --- src/hyperfine/benchmark.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfine/benchmark.rs b/src/hyperfine/benchmark.rs index 446d75d..bfc251f 100644 --- a/src/hyperfine/benchmark.rs +++ b/src/hyperfine/benchmark.rs @@ -219,7 +219,7 @@ pub fn run_benchmark( if options.output_style != OutputStyleOption::Disabled { println!( "{}{}: {}", - "Benchmark #".bold(), + "Benchmark ".bold(), (num + 1).to_string().bold(), &command_name );