Skip to content
Myr

Fix clippy warnings

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 623ce2d · Browse files · 3 files+3 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

3 files+3 added−3 removed

  • other:+3 added−3 removed

3 files+3 added−3 removed

modified:src/benchmark/mod.rs+1 added-1 removed
286 unmodified lines
287 println!(288 " Time ({} ≡): {:>8} {:>8} [User: {}, System: {}]",289 "abs".green().bold(),290 mean_str.green().bold(),291 " ".to_string(), // alignment291 " ", // alignment292 user_str.blue(),293 system_str.blue()294 );295 } else {
80 unmodified lines
modified:src/export/asciidoc.rs+1 added-1 removed
83 unmodified lines
84 | {mean}{stddev} \n\85 | {min} \n\86 | {max} \n\87 | {rel}{rel_stddev} \n",88 command = result.command.replace("|", "\\|"),88 command = result.command.replace('|', "\\|"),89 mean = mean_str,90 stddev = stddev_str,91 min = min_str,92 max = max_str,
181 unmodified lines
modified:src/export/markup.rs+1 added-1 removed
84 unmodified lines
85}8687impl<T: MarkupExporter> Exporter for T {88 fn serialize(&self, results: &[BenchmarkResult], unit: Option<Unit>) -> Result<Vec<u8>> {89 let unit = unit.unwrap_or_else(|| determine_unit_from_results(&results));89 let unit = unit.unwrap_or_else(|| determine_unit_from_results(results));90 let entries = relative_speed::compute(results);91 if entries.is_none() {92 return Err(anyhow!(93 "Relative speed comparison is not available for markup exporter."
179 unmodified lines