mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 08:40:18 +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(", "));
|
||||
}
|
||||
}
|
||||
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(
|
||||
param_names_and_values
|
||||
.iter()
|
||||
@@ -197,7 +196,7 @@ impl<'a> Commands<'a> {
|
||||
.collect();
|
||||
commands.push(Command::new_parametrized(
|
||||
name,
|
||||
command_list[*command_index],
|
||||
command_strings[*command_index],
|
||||
parameters,
|
||||
));
|
||||
|
||||
|
||||
Reference in new issue
Block a user