refactor(derive): Split up chained calls

This commit is contained in:
Ed Page 2022-06-14 12:37:21 -05:00
parent ce5cc92820
commit ae81b09359

View file

@ -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
});
})
}
}