mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +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());
|
||||
}
|
||||
|
||||
let command_list = command_strings;
|
||||
let mut commands = Vec::with_capacity(command_list.len());
|
||||
for (i, s) in command_list.iter().enumerate() {
|
||||
let mut commands = Vec::with_capacity(command_strings.len());
|
||||
for (i, s) in command_strings.iter().enumerate() {
|
||||
commands.push(Command::new(command_names.get(i).copied(), s));
|
||||
}
|
||||
Ok(Self(commands))
|
||||
|
||||
Reference in new issue
Block a user