diff --git a/clap_derive/src/dummies.rs b/clap_derive/src/dummies.rs index ecc63277887..0f04567e770 100644 --- a/clap_derive/src/dummies.rs +++ b/clap_derive/src/dummies.rs @@ -76,13 +76,13 @@ pub fn args(name: &Ident) { pub fn arg_enum(name: &Ident) { append_dummy(quote! { impl clap::ArgEnum for #name { - fn arg_values() -> Vec> { + fn value_variants<'a>() -> &'a [Self]{ unimplemented!() } fn from_str(_input: &str, _case_insensitive: bool) -> Result { unimplemented!() } - fn arg_value(&self) -> Option> { + fn arg_value<'a>(&self) -> Option>{ unimplemented!() } }