Skip to content
Myr

Clippy suggestions

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 8349ad4 · Browse files · 2 files+4 added−8 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+4 added−8 removed

  • other:+4 added−8 removed

2 files+4 added−8 removed

modified:src/benchmark/scheduler.rs+3 added-5 removed
101 unmodified lines
102 " {}{} {}",103 format!("{:10.2}", item.relative_speed).bold().green(),104 if item.is_fastest {105 " ".into()106 } else if let Some(stddev) = item.relative_speed_stddev {107 format!(" ± {}", format!("{:5.2}", stddev).green())108 } else {107 if let Some(stddev) = item.relative_speed_stddev {108 format!(" ± {}", format!("{:5.2}", stddev).green())109 } else {110 " ".into()109 " ".into()111 }110 },111 &item.result.command_with_unused_parameters,112 );113 }
20 unmodified lines
modified:src/command.rs+1 added-3 removed
59 unmodified lines
6061 pub fn get_name_with_unused_parameters(&self) -> String {62 let parameters = self63 .get_unused_parameters()64 .map(|(parameter, value)| {65 format!("{} = {}, ", parameter.to_string(), value.to_string())66 })64 .map(|(parameter, value)| format!("{} = {}, ", parameter, value.to_string()))65 .collect::<String>();66 let parameters = parameters.trim_end_matches(", ");67 let parameters = if parameters.is_empty() {68 "".into()
497 unmodified lines