mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 16:40:18 +00:00
Clippy suggestions
This commit is contained in:
1 parent
8349ad4c44
commit
3d4710f6e0
2 files changed
+4
-8
No files matched your search
+1
-3
@@ -61,9 +61,7 @@ impl<'a> Command<'a> {
|
||||
pub fn get_name_with_unused_parameters(&self) -> String {
|
||||
let parameters = self
|
||||
.get_unused_parameters()
|
||||
.map(|(parameter, value)| {
|
||||
format!("{} = {}, ", parameter.to_string(), value.to_string())
|
||||
})
|
||||
.map(|(parameter, value)| format!("{} = {}, ", parameter, value.to_string()))
|
||||
.collect::<String>();
|
||||
let parameters = parameters.trim_end_matches(", ");
|
||||
let parameters = if parameters.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user