Skip to content
Myr

remove unneeded var

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Benjamin Rombaut · committed by David Peter · parent a2e85a2 · Browse files · 1 file+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:src/command.rs+2 added-3 removed
219 unmodified lines
220 if command_names.len() > command_strings.len() {221 return Err(OptionsError::TooManyCommandNames(command_strings.len()).into());222 }223224 let command_list = command_strings;225 let mut commands = Vec::with_capacity(command_list.len());226 for (i, s) in command_list.iter().enumerate() {224 let mut commands = Vec::with_capacity(command_strings.len());225 for (i, s) in command_strings.iter().enumerate() {226 commands.push(Command::new(command_names.get(i).copied(), s));227 }228 Ok(Self(commands))229 }
316 unmodified lines