mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 00:40:19 +00: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:
1 parent
e3e86174d9
commit
f096c266f0
1 file changed
+1
-1
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user