From 6da4dd5bbba467fdadd1386b7dda7348e22e2a33 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 4 Aug 2020 16:24:13 +0200 Subject: [PATCH] clippy: use matches for if let -> bool Signed-off-by: Wolfgang Bumiller --- proxmox/src/api/cli/format.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/proxmox/src/api/cli/format.rs b/proxmox/src/api/cli/format.rs index 8d4f05f4..7581ae97 100644 --- a/proxmox/src/api/cli/format.rs +++ b/proxmox/src/api/cli/format.rs @@ -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('['); }