mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(gen): address clippy suggestion
Change-Id: I11a8dc27956e6365a0c8ae8165e08d2209ae9395
This commit is contained in:
parent
de1c764905
commit
bcf1bb69c8
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ use clap::{App, Arg};
|
|||
pub fn all_subcommands(app: &App) -> Vec<(String, String)> {
|
||||
let mut subcmds: Vec<_> = subcommands(app);
|
||||
|
||||
for sc_v in app.get_subcommands().map(|s| all_subcommands(s)) {
|
||||
for sc_v in app.get_subcommands().map(all_subcommands) {
|
||||
subcmds.extend(sc_v);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue