]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix compiler warning for confusing lifetimes 13396/head
authorJason Ish <jason.ish@oisf.net>
Fri, 6 Jun 2025 15:05:12 +0000 (09:05 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 6 Jun 2025 18:08:50 +0000 (20:08 +0200)
commitf0411c079dac935fb115359ec10be9ab494f8fb7
tree2cc33fb93f338e623d74480bb6c1e60fd4fa9164
parentf865b7cc978488fa492d47444f9453d8d07a1843
rust: fix compiler warning for confusing lifetimes

For example:

error: lifetime flowing from input to output with different syntax can be confusing
   --> htp/src/headers.rs:475:16
    |
475 | fn null(input: &[u8]) -> IResult<&[u8], ParsedBytes> {
    |                ^^^^^             -----  ----------- the lifetimes get resolved as `'_`
    |                |                 |
    |                |                 the lifetimes get resolved as `'_`
    |                this lifetime flows to the output
    |
note: the lint level is defined here
   --> htp/src/lib.rs:3:9

This currently only happens when using the Rust nightly compiler, which
we use for our fuzz builds.
22 files changed:
rust/htp/src/headers.rs
rust/htp/src/parsers.rs
rust/htp/src/transaction.rs
rust/src/ike/parser.rs
rust/src/kerberos.rs
rust/src/ldap/types.rs
rust/src/mime/mime.rs
rust/src/mime/smtp.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