mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-16 09:42:02 +00:00
clippy: use matches for if let -> bool
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
66ae742cb3
commit
6da4dd5bbb
@ -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('[');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user