Skip to content
Myr

fix build warning proposal

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

```rust warning: elided lifetime has a name --> src/command.rs:137:66 | 136 | impl<'a> Commands<'a> { | -- lifetime `'a` declared here 137 | pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result<Commands> { | ^^^^^^^^ this elided lifetime gets resolved as `' ```

authored by David Carlier · committed by David Peter · parent e3e8617 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/command.rs+1 added-1 removed
132 unmodified lines
133/// A collection of commands that should be benchmarked134pub struct Commands<'a>(Vec<Command<'a>>);135136impl<'a> Commands<'a> {137 pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result<Commands> {137 pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result<Commands<'a>> {138 let command_names = matches.get_many::<String>("command-name");139 let command_strings = matches140 .get_many::<String>("command")141 .unwrap_or_default()
421 unmodified lines