Skip to content

Commit 7d84325

Browse files
committed
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
1 parent 03bc95c commit 7d84325

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/src/ldap/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ pub fn ldap_is_response(message: &LdapMessage) -> bool {
188188
return !ldap_is_request(message);
189189
}
190190

191-
pub fn ldap_parse_msg(input: &[u8]) -> ParseResult<LdapMessage, LdapError> {
191+
pub fn ldap_parse_msg(input: &[u8]) -> ParseResult<'_, LdapMessage<'_>, LdapError> {
192192
LdapMessage::from_ber(input)
193193
}

0 commit comments

Comments
 (0)