forked from Proxmox/proxmox
clippy fix
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
6eb638c806
commit
acaf55c437
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user