mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
Address new clippy lints
This commit is contained in:
parent
9ebb46d65c
commit
77e4e65e31
1 changed files with 1 additions and 4 deletions
|
@ -347,10 +347,7 @@ fn gen_update_from_subcommand(
|
|||
})
|
||||
.partition(|(_, attrs)| {
|
||||
let kind = attrs.kind();
|
||||
match &*kind {
|
||||
Kind::Flatten => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(&*kind, Kind::Flatten)
|
||||
});
|
||||
|
||||
let subcommands = variants.iter().map(|(variant, attrs)| {
|
||||
|
|
Loading…
Reference in a new issue