mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
remove unneeded var
This commit is contained in:
1 parent
95890b968a
commit
a2e85a25b6
1 file changed
+2
-3
+2
-3
@@ -154,9 +154,8 @@ impl<'a> Commands<'a> {
|
|||||||
bail!("Duplicate parameter names: {}", &duplicates.join(", "));
|
bail!("Duplicate parameter names: {}", &duplicates.join(", "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let command_list = command_strings;
|
|
||||||
|
|
||||||
let dimensions: Vec<usize> = std::iter::once(command_list.len())
|
let dimensions: Vec<usize> = std::iter::once(command_strings.len())
|
||||||
.chain(
|
.chain(
|
||||||
param_names_and_values
|
param_names_and_values
|
||||||
.iter()
|
.iter()
|
||||||
@@ -197,7 +196,7 @@ impl<'a> Commands<'a> {
|
|||||||
.collect();
|
.collect();
|
||||||
commands.push(Command::new_parametrized(
|
commands.push(Command::new_parametrized(
|
||||||
name,
|
name,
|
||||||
command_list[*command_index],
|
command_strings[*command_index],
|
||||||
parameters,
|
parameters,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user