Remove a redundant lifetime

This commit is contained in:
CreepySkeleton 2020-08-05 22:33:51 +03:00
parent e6cc49ecde
commit f0044d205d
2 changed files with 2 additions and 2 deletions

View file

@ -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 => {

View file

@ -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<'_> {