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.