diff --git a/src/hyperfine/benchmark.rs b/src/hyperfine/benchmark.rs index cb2b80b..6ca2845 100644 --- a/src/hyperfine/benchmark.rs +++ b/src/hyperfine/benchmark.rs @@ -343,7 +343,9 @@ pub fn run_benchmark( format!("Current estimate: {}", mean.to_string().green()) }; - progress_bar.as_ref().map(|bar| bar.set_message(msg.to_owned())); + progress_bar + .as_ref() + .map(|bar| bar.set_message(msg.to_owned())); let (res, status) = time_shell_command( &options.shell, diff --git a/src/hyperfine/internal.rs b/src/hyperfine/internal.rs index b0b2ce7..e3e68c0 100644 --- a/src/hyperfine/internal.rs +++ b/src/hyperfine/internal.rs @@ -64,8 +64,8 @@ fn compare_mean_time(l: &BenchmarkResult, r: &BenchmarkResult) -> Ordering { l.mean.partial_cmp(&r.mean).unwrap_or(Ordering::Equal) } -pub fn compute_relative_speed ( - results: & [BenchmarkResult], +pub fn compute_relative_speed( + results: &[BenchmarkResult], ) -> Option> { let fastest: &BenchmarkResult = results .iter()