Merge pull request #2793 from ldm0/master

Resolve a todo
This commit is contained in:
Pavan Kumar Sunkara 2021-09-26 21:04:09 +01:00 committed by GitHub
commit a9bd06945a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1082,10 +1082,9 @@ impl<'help, 'app> Parser<'help, 'app> {
}
}
}
let name = sc.name.clone();
matcher.subcommand(SubCommand {
id: Id::from_ref(&name), // @TODO @maybe: should be sc.id?
name,
id: sc.id.clone(),
name: sc.name.clone(),
matches: sc_matcher.into_inner(),
});
}