mirror of
https://github.com/clap-rs/clap
synced 2025-01-18 23:53:54 +00:00
Remove a redundant lifetime
This commit is contained in:
parent
e6cc49ecde
commit
f0044d205d
2 changed files with 2 additions and 2 deletions
|
@ -280,7 +280,7 @@ fn gen_from_subcommand(
|
|||
};
|
||||
|
||||
quote! {
|
||||
fn from_subcommand<'b>(subcommand: Option<(&'b str, &'b ::clap::ArgMatches)>) -> Option<Self> {
|
||||
fn from_subcommand(subcommand: Option<(&str, &::clap::ArgMatches)>) -> Option<Self> {
|
||||
match subcommand {
|
||||
#( #match_arms, )*
|
||||
other => {
|
||||
|
|
|
@ -44,7 +44,7 @@ pub fn from_arg_matches(name: &Ident) {
|
|||
pub fn subcommand(name: &Ident) {
|
||||
append_dummy(quote! {
|
||||
impl ::clap::Subcommand for #name {
|
||||
fn from_subcommand<'b>(_sub: Option<(&'b str, &'b ::clap::ArgMatches)>) -> Option<Self> {
|
||||
fn from_subcommand(_sub: Option<(&str, &::clap::ArgMatches)>) -> Option<Self> {
|
||||
unimplemented!()
|
||||
}
|
||||
fn augment_subcommands(_app: ::clap::App<'_>) -> ::clap::App<'_> {
|
||||
|
|
Loading…
Reference in a new issue