We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13dbe7d commit 7383f21Copy full SHA for 7383f21
src/command/mod.rs
@@ -441,9 +441,9 @@ impl Command {
441
}
442
443
pub(crate) fn find_subcommand(&self, name: &str) -> Option<&Self> {
444
- self.subcommands.iter().find(|subcmd| {
445
- return subcmd.list_names().iter().any(|v| v == name);
446
- })
+ self.subcommands
+ .iter()
+ .find(|subcmd| subcmd.list_names().iter().any(|v| v == name))
447
448
449
pub(crate) fn find_default_subcommand(&self) -> Option<&Self> {
src/matcher.rs
@@ -1127,7 +1127,7 @@ struct BindEnvs<'a, 'x> {
1127
choice_fns: HashSet<&'a str>,
1128
1129
1130
-impl<'a, 'x> BindEnvs<'a, 'x> {
+impl BindEnvs<'_, '_> {
1131
fn new(len: usize) -> Self {
1132
Self {
1133
flag_options: vec![HashMap::new(); len],
0 commit comments