mirror of
https://github.com/clap-rs/clap
synced 2024-11-12 23:57:10 +00:00
refactor(derive): Split up chained calls
This commit is contained in:
parent
ce5cc92820
commit
ae81b09359
1 changed files with 7 additions and 5 deletions
|
@ -406,11 +406,13 @@ pub fn gen_augment(
|
|||
let explicit_methods = attrs.field_methods(true);
|
||||
|
||||
Some(quote_spanned! { field.span()=>
|
||||
let #app_var = #app_var.arg(
|
||||
clap::Arg::new(#id)
|
||||
#implicit_methods
|
||||
#explicit_methods
|
||||
);
|
||||
let #app_var = #app_var.arg({
|
||||
let arg = clap::Arg::new(#id)
|
||||
#implicit_methods;
|
||||
let arg = arg
|
||||
#explicit_methods;
|
||||
arg
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue