Skip to content

Commit

Permalink
Fix wrong span
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Aug 25, 2020
1 parent 54f73b1 commit f7fcda2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion structopt-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,9 @@ fn gen_augment_clap_enum(
let kind = attrs.kind();
match &*kind {
Kind::ExternalSubcommand => {
let app_var = Ident::new("app", Span::call_site());
quote_spanned! { attrs.kind().span()=>
let app = app.setting(
let #app_var = #app_var.setting(
::structopt::clap::AppSettings::AllowExternalSubcommands
);
}
Expand Down

0 comments on commit f7fcda2

Please sign in to comment.