From cd61c8741c175e0ba7413c0f474adb2e873b3d85 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 8 Feb 2023 14:15:44 +0100 Subject: [PATCH] ldap: clippy fixups Signed-off-by: Wolfgang Bumiller --- proxmox-ldap/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-ldap/src/lib.rs b/proxmox-ldap/src/lib.rs index 3815b277..239a4896 100644 --- a/proxmox-ldap/src/lib.rs +++ b/proxmox-ldap/src/lib.rs @@ -303,7 +303,7 @@ impl LdapConnection { let user_classes = Or(parameters .user_classes .iter() - .map(|class| Condition("objectclass".into(), class)) + .map(|class| Condition("objectclass", class)) .collect()); if let Some(user_filter) = ¶meters.user_filter { @@ -346,7 +346,7 @@ impl<'a> Display for FilterElement<'a> { write!(f, ")")?; } FilterElement::Not(element) => { - write!(f, "(!{})", element)?; + write!(f, "(!{element})")?; } FilterElement::Condition(attr, value) => { write!(f, "({attr}={value})")?;