From bcf1bb69c81775bea3c7af98f73f0b54a69d4101 Mon Sep 17 00:00:00 2001 From: Nicolas Stinus Date: Thu, 14 Oct 2021 14:42:04 -0400 Subject: [PATCH] fix(gen): address clippy suggestion Change-Id: I11a8dc27956e6365a0c8ae8165e08d2209ae9395 --- clap_generate/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap_generate/src/utils.rs b/clap_generate/src/utils.rs index 1ae8281e..e4b0a697 100644 --- a/clap_generate/src/utils.rs +++ b/clap_generate/src/utils.rs @@ -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); }