Address new clippy lints

This commit is contained in:
Luca Barbato 2020-10-24 13:13:53 +02:00
parent 9ebb46d65c
commit 77e4e65e31

View file

@ -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)| {