chore: upgrade Rust toolchain to 1.89 and modernize code with let-chains

This commit is contained in:
Kumpelinus
2025-09-13 20:20:02 +02:00
committed by nitnelave
parent 3d5542996f
commit 176c49c78d
27 changed files with 62 additions and 33 deletions
+6 -6
View File
@@ -291,12 +291,12 @@ pub fn make_ldap_subschema_entry(schema: PublicSchema) -> LdapOp {
}
pub(crate) fn is_root_dse_request(request: &LdapSearchRequest) -> bool {
if request.base.is_empty() && request.scope == LdapSearchScope::Base {
if let LdapFilter::Present(attribute) = &request.filter {
if attribute.eq_ignore_ascii_case("objectclass") {
return true;
}
}
if request.base.is_empty()
&& request.scope == LdapSearchScope::Base
&& let LdapFilter::Present(attribute) = &request.filter
&& attribute.eq_ignore_ascii_case("objectclass")
{
return true;
}
false
}