Skip to content
Myr

Run cargo fmt

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 75919ad · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:src/hyperfine/benchmark.rs+3 added-1 removed
341 unmodified lines
342 let mean = format_duration(mean(&times_real), options.time_unit);343 format!("Current estimate: {}", mean.to_string().green())344 };345346 progress_bar.as_ref().map(|bar| bar.set_message(msg.to_owned()));346 progress_bar347 .as_ref()348 .map(|bar| bar.set_message(msg.to_owned()));349350 let (res, status) = time_shell_command(351 &options.shell,352 cmd,
116 unmodified lines
modified:src/hyperfine/internal.rs+2 added-2 removed
62 unmodified lines
63fn compare_mean_time(l: &BenchmarkResult, r: &BenchmarkResult) -> Ordering {64 l.mean.partial_cmp(&r.mean).unwrap_or(Ordering::Equal)65}6667pub fn compute_relative_speed (68 results: & [BenchmarkResult],67pub fn compute_relative_speed(68 results: &[BenchmarkResult],69) -> Option<Vec<BenchmarkResultWithRelativeSpeed>> {70 let fastest: &BenchmarkResult = results71 .iter()72 .min_by(|&l, &r| compare_mean_time(l, r))
182 unmodified lines