From f096c266f015ebb6454b8c81bbde9eed2b706874 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 26 Oct 2024 12:06:52 +0100 Subject: [PATCH] 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 { | ^^^^^^^^ this elided lifetime gets resolved as `' ``` --- src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.rs b/src/command.rs index d849c74..eb93b0d 100644 --- a/src/command.rs +++ b/src/command.rs @@ -134,7 +134,7 @@ impl<'a> Command<'a> { pub struct Commands<'a>(Vec>); impl<'a> Commands<'a> { - pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result { + pub fn from_cli_arguments(matches: &'a ArgMatches) -> Result> { let command_names = matches.get_many::("command-name"); let command_strings = matches .get_many::("command")