clippy: use matches for if let -> bool

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-08-04 16:24:13 +02:00
parent 66ae742cb3
commit 6da4dd5bbb

View File

@ -68,11 +68,7 @@ pub fn generate_usage_str(
Some((optional, param_schema)) => {
args.push(' ');
let is_array = if let Schema::Array(_) = param_schema {
true
} else {
false
};
let is_array = matches!(param_schema, Schema::Array(_));
if optional {
args.push('[');
}