Skip to content

Commit

Permalink
fix(derive): avoid arg reassignment in gen_augment
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Feb 27, 2023
1 parent cdb33b6 commit 03ee714
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions clap_derive/src/derives/args.rs
Expand Up @@ -341,16 +341,10 @@ pub fn gen_augment(
#deprecations

#[allow(deprecated)]
let arg = clap::Arg::new(#id)
#implicit_methods;

let arg = arg
#explicit_methods;

let arg = arg
#override_methods;

arg
clap::Arg::new(#id)
#implicit_methods
#explicit_methods
#override_methods
});
})
}
Expand Down

0 comments on commit 03ee714

Please sign in to comment.