Run cargo fmt

This commit is contained in:
David Peter authored and David Peter committed 2021-08-22 15:51:28 +02:00
1 parent 75919ad884
commit f860c3cf6b
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -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,
+2 -2
View File
@@ -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<Vec<BenchmarkResultWithRelativeSpeed>> {
let fastest: &BenchmarkResult = results
.iter()