From acaf55c43753f6500971ee2a778d8f5ac7bb611d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 13 Dec 2022 14:55:24 +0100 Subject: [PATCH] clippy fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- proxmox-api-macro/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-api-macro/src/util.rs b/proxmox-api-macro/src/util.rs index d58a6838..1eba31fa 100644 --- a/proxmox-api-macro/src/util.rs +++ b/proxmox-api-macro/src/util.rs @@ -701,7 +701,7 @@ pub fn derived_items(attributes: &[syn::Attribute]) -> DerivedItems { /// Helper to check if a certain trait is being derived. pub fn derives_trait(attributes: &[syn::Attribute], ident: &str) -> bool { - derived_items(&attributes).any(|p| p.is_ident(ident)) + derived_items(attributes).any(|p| p.is_ident(ident)) } /// Iterator over the types found in `#[derive(...)]` attributes.