fix(gen): address clippy suggestion

Change-Id: I11a8dc27956e6365a0c8ae8165e08d2209ae9395
This commit is contained in:
Nicolas Stinus 2021-10-14 14:42:04 -04:00
parent de1c764905
commit bcf1bb69c8

View file

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