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 95890b9 · 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
152 unmodified lines
153 if !duplicates.is_empty() {154 bail!("Duplicate parameter names: {}", &duplicates.join(", "));155 }156 }157 let command_list = command_strings;157159 let dimensions: Vec<usize> = std::iter::once(command_list.len())158 let dimensions: Vec<usize> = std::iter::once(command_strings.len())159 .chain(160 param_names_and_values161 .iter()162 .map(|(_, values)| values.len()),
32 unmodified lines
195 .map(|((name, values), i)| (*name, ParameterValue::Text(values[*i].clone())))196 .collect();197 commands.push(Command::new_parametrized(198 name,200 command_list[*command_index],199 command_strings[*command_index],200 parameters,201 ));202203 // Increment index, exiting loop on overflow.
343 unmodified lines