fix(derive): Make Option<Option<T>> work per occurrence

This commit is contained in:
Ed Page 2022-07-28 12:35:49 -05:00
parent ab8ef46663
commit cf8e1fc319

View file

@ -258,8 +258,7 @@ pub fn gen_augment(
Ty::OptionOption => quote_spanned! { ty.span()=>
.value_name(#value_name)
.min_values(0)
.max_values(1)
.number_of_values(0..=1)
#value_parser
#action
},