fix(derive): Better subcommand type errors for Vec

This commit is contained in:
Ed Page 2022-10-05 16:03:48 -05:00
parent 4f17f998cb
commit f121a8bdf6

View file

@ -410,7 +410,6 @@ pub fn gen_constructor(fields: &[(&Field, Item)]) -> TokenStream {
}
}
},
Ty::Vec |
Ty::Other => {
quote_spanned! { kind.span()=>
#field_name: {
@ -418,6 +417,7 @@ pub fn gen_constructor(fields: &[(&Field, Item)]) -> TokenStream {
}
}
},
Ty::Vec |
Ty::OptionOption |
Ty::OptionVec => {
abort!(