mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-30 01:39:21 +03:00
Avoid redundant ref
This commit is contained in:
parent
76119e6664
commit
f3f8c9ca98
@ -211,7 +211,7 @@ fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec<Command<'a>> {
|
|||||||
let mut commands = vec![];
|
let mut commands = vec![];
|
||||||
let command_strings = command_strings.collect::<Vec<&str>>();
|
let command_strings = command_strings.collect::<Vec<&str>>();
|
||||||
for value in param_range.start..param_range.end {
|
for value in param_range.start..param_range.end {
|
||||||
for ref cmd in &command_strings {
|
for cmd in &command_strings {
|
||||||
commands.push(Command::new_parametrized(cmd, param_name, value));
|
commands.push(Command::new_parametrized(cmd, param_name, value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user