]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix mismatched_lifetime_syntaxes warning
authorJason Ish <jason.ish@oisf.net>
Thu, 7 Aug 2025 15:47:42 +0000 (09:47 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Aug 2025 06:16:50 +0000 (08:16 +0200)
commita84c41832391c58aa0f8e10e2f941ec55c030312
tree65be69e89204de1f4afb1013005b536b4bd69fef
parent78ece1a7d1a726995656d6f0163a5c69e9d60d53
rust: fix mismatched_lifetime_syntaxes warning

Fix new warning present in Rust 1.89, for example:

warning: hiding a lifetime that's elided elsewhere is confusing
   --> src/ike/parser.rs:295:30
295 | pub fn parse_key_exchange(i: &[u8], length: u16) -> IResult<&[u8], KeyExchangePayload> {
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
17 files changed:
rust/src/ike/parser.rs
rust/src/kerberos.rs
rust/src/mime/mod.rs
rust/src/nfs/nfs2_records.rs
rust/src/nfs/nfs3_records.rs
rust/src/nfs/nfs4_records.rs
rust/src/nfs/rpc_records.rs
rust/src/smb/dcerpc_records.rs
rust/src/smb/nbss_records.rs
rust/src/smb/ntlmssp_records.rs
rust/src/smb/smb1_records.rs
rust/src/smb/smb2_records.rs
rust/src/smb/smb3.rs
rust/src/snmp/log.rs
rust/src/snmp/snmp.rs
rust/src/ssh/parser.rs
rust/src/telnet/parser.rs