Skip to content

Commit

Permalink
Fix parse for OptionVec (#279)
Browse files Browse the repository at this point in the history
ref pull #191
  • Loading branch information
xiaoniu-578fa6bff964d005 authored and TeXitoi committed Nov 8, 2019
1 parent 6a93113 commit 0e4fa6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structopt-derive/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ impl Attrs {
let mut ty = Self::ty_from_field(&field.ty);
if res.has_custom_parser {
match *ty {
Ty::Option | Ty::Vec => (),
Ty::Option | Ty::Vec | Ty::OptionVec => (),
_ => ty = Sp::new(Ty::Other, ty.span()),
}
}
Expand Down

0 comments on commit 0e4fa6f

Please sign in to comment.