mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
chore: fix failing nightly
This commit is contained in:
parent
56e2f752ac
commit
d3a4834225
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar> {
|
|||
panic!("Non-unique argument name: {} is already in use", a.name);
|
||||
}
|
||||
if let Some(grp) = a.group {
|
||||
let ag = self.groups.entry(grp).or_insert(ArgGroup::with_name(grp));
|
||||
let ag = self.groups.entry(grp).or_insert_with(|| ArgGroup::with_name(grp));
|
||||
ag.args.push(a.name);
|
||||
}
|
||||
if let Some(s) = a.short {
|
||||
|
|
Loading…
Reference in a new issue