mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 17:09:27 +00:00
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.
|
/// Helper to check if a certain trait is being derived.
|
||||||
pub fn derives_trait(attributes: &[syn::Attribute], ident: &str) -> bool {
|
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.
|
/// Iterator over the types found in `#[derive(...)]` attributes.
|
||||||
|
Loading…
Reference in New Issue
Block a user