mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-16 13:15:11 +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)) => {
|
Some((optional, param_schema)) => {
|
||||||
args.push(' ');
|
args.push(' ');
|
||||||
|
|
||||||
let is_array = if let Schema::Array(_) = param_schema {
|
let is_array = matches!(param_schema, Schema::Array(_));
|
||||||
true
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
};
|
|
||||||
if optional {
|
if optional {
|
||||||
args.push('[');
|
args.push('[');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user