diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs index 5e494681..820a4c8e 100644 --- a/structopt-derive/src/lib.rs +++ b/structopt-derive/src/lib.rs @@ -648,10 +648,10 @@ fn gen_from_subcommand( } (external, None) => { - ::std::option::Option::Some(#name::#var_name({ + ::std::option::Option::Some(#name::#var_name( ::std::iter::once(#str_ty::from(external)) .collect::<::std::vec::Vec<_>>() - })) + )) } } },