From 100d88fb8afac0e4605b4e55277b559fe8207ac7 Mon Sep 17 00:00:00 2001 From: Frank Benkstein Date: Thu, 24 May 2018 15:44:00 +0200 Subject: [PATCH] fully qualify StructOpt when flattening (#112) --- structopt-derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs index 025fe92f..08d2b203 100644 --- a/structopt-derive/src/lib.rs +++ b/structopt-derive/src/lib.rs @@ -177,7 +177,7 @@ fn gen_constructor(fields: &Punctuated) -> TokenStream { }; quote!(#field_name: <#subcmd_type>::from_subcommand(matches.subcommand())#unwrapper) } - Kind::FlattenStruct => quote!(#field_name: StructOpt::from_clap(matches)), + Kind::FlattenStruct => quote!(#field_name: ::structopt::StructOpt::from_clap(matches)), Kind::Arg(ty) => { use Parser::*; let (value_of, values_of, parse) = match *attrs.parser() {