mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
remove unneeded var
This commit is contained in:
1 parent
a2e85a25b6
commit
781a6815c1
1 file changed
+2
-3
+2
-3
@@ -221,9 +221,8 @@ impl<'a> Commands<'a> {
|
|||||||
return Err(OptionsError::TooManyCommandNames(command_strings.len()).into());
|
return Err(OptionsError::TooManyCommandNames(command_strings.len()).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
let command_list = command_strings;
|
let mut commands = Vec::with_capacity(command_strings.len());
|
||||||
let mut commands = Vec::with_capacity(command_list.len());
|
for (i, s) in command_strings.iter().enumerate() {
|
||||||
for (i, s) in command_list.iter().enumerate() {
|
|
||||||
commands.push(Command::new(command_names.get(i).copied(), s));
|
commands.push(Command::new(command_names.get(i).copied(), s));
|
||||||
}
|
}
|
||||||
Ok(Self(commands))
|
Ok(Self(commands))
|
||||||
|
|||||||
Reference in new issue
Block a user