From 31a569b4255bf83199eb8094bb44ddd29e0d7643 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 27 Jul 2022 10:52:07 +0200 Subject: [PATCH] api-macro: clippy fixes Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/method.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index eae36942..a40a5a1c 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -310,7 +310,7 @@ fn handle_function_signature( // For any named type which exists on the function signature... if let Some(entry) = input_schema.find_obj_property_by_ident_mut(&pat.ident.to_string()) { // try to infer the type in the schema if it is not specified explicitly: - let is_option = util::infer_type(&mut entry.schema, &*pat_type.ty)?; + let is_option = util::infer_type(&mut entry.schema, &pat_type.ty)?; let has_default = entry.schema.find_schema_property("default").is_some(); if !is_option && entry.optional.expect_bool() && !has_default { error!(pat_type => "optional types need a default or be an Option");