remove unneeded var

This commit is contained in:
Benjamin Rombaut authored and David Peter committed 2022-11-19 15:13:30 +01:00
1 parent 95890b968a
commit a2e85a25b6
1 file changed
+2 -3
+2 -3
View File
@@ -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,
)); ));