Skip to content

Commit 7383f21

Browse files
authored
chore: clippy for new rust version (#354)
1 parent 13dbe7d commit 7383f21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/command/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ impl Command {
441441
}
442442

443443
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-
})
444+
self.subcommands
445+
.iter()
446+
.find(|subcmd| subcmd.list_names().iter().any(|v| v == name))
447447
}
448448

449449
pub(crate) fn find_default_subcommand(&self) -> Option<&Self> {

src/matcher.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ struct BindEnvs<'a, 'x> {
11271127
choice_fns: HashSet<&'a str>,
11281128
}
11291129

1130-
impl<'a, 'x> BindEnvs<'a, 'x> {
1130+
impl BindEnvs<'_, '_> {
11311131
fn new(len: usize) -> Self {
11321132
Self {
11331133
flag_options: vec![HashMap::new(); len],

0 commit comments

Comments
 (0)