clippy fix

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-12-13 14:55:24 +01:00
parent 6eb638c806
commit acaf55c437

View File

@ -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.