Skip to content
Myr

Return value directly

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

authored by philipp · committed by David Peter · parent 45fc206 · 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/main.rs+2 added-3 removed
205 unmodified lines
206/// Build the commands to benchmark207fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec<Command<'a>> {208 let command_strings = matches.values_of("command").unwrap();209210 let commands = if let Some(args) = matches.values_of("parameter-scan") {210 if let Some(args) = matches.values_of("parameter-scan") {211 match parse_parameter_scan_args(args) {212 Ok((param_name, param_range)) => {213 let mut commands = vec![];214 let command_strings = command_strings.collect::<Vec<&str>>();
7 unmodified lines
222 Err(e) => error(e.description()),223 }224 } else {225 command_strings.map(|c| Command::new(c)).collect()226 };227 commands226 }227}