mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-22 03:17:24 +03:00
fix build warning proposal
```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 `' ```
This commit is contained in:
parent
e3e86174d9
commit
f096c266f0
@ -134,7 +134,7 @@ impl<'a> Command<'a> {
|
||||
pub struct Commands<'a>(Vec<Command<'a>>);
|
||||
|
||||
impl<'a> Commands<'a> {
|
||||
pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result<Commands> {
|
||||
pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result<Commands<'a>> {
|
||||
let command_names = matches.get_many::<String>("command-name");
|
||||
let command_strings = matches
|
||||
.get_many::<String>("command")
|
||||
|
Loading…
Reference in New Issue
Block a user