From b93a27722c29e10f69ff32eadbd2964aa254000e Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 7 Aug 2025 09:21:31 -0600 Subject: [PATCH] rust: fix mismatched_lifetime_syntaxes warning Fix new warning present in Rust 1.89. warning: hiding a lifetime that's elided elsewhere is confusing --> src/ldap/types.rs:191:30 = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths --- rust/src/ldap/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/ldap/types.rs b/rust/src/ldap/types.rs index 08a94667af..1cbaae1659 100644 --- a/rust/src/ldap/types.rs +++ b/rust/src/ldap/types.rs @@ -188,6 +188,6 @@ pub fn ldap_is_response(message: &LdapMessage) -> bool { return !ldap_is_request(message); } -pub fn ldap_parse_msg(input: &[u8]) -> ParseResult { +pub fn ldap_parse_msg(input: &[u8]) -> ParseResult<'_, LdapMessage<'_>, LdapError> { LdapMessage::from_ber(input) } -- 2.47.2