From: Jason Ish Date: Thu, 7 Aug 2025 15:21:31 +0000 (-0600) Subject: rust: fix mismatched_lifetime_syntaxes warning X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fsuricata.git 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 --- 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) }