From: Jason Ish Date: Tue, 18 Feb 2025 21:37:51 +0000 (-0600) Subject: rust: allow vec_init_then_push in tests X-Git-Tag: suricata-7.0.9~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ff76cac5be516e70cda325836828bc4fc564cf;p=thirdparty%2Fsuricata.git rust: allow vec_init_then_push in tests To supress the clippy lint in tests. --- diff --git a/rust/src/pgsql/parser.rs b/rust/src/pgsql/parser.rs index 502d3529fc..4a2ccef9a3 100644 --- a/rust/src/pgsql/parser.rs +++ b/rust/src/pgsql/parser.rs @@ -1094,6 +1094,7 @@ pub fn pgsql_parse_response(i: &[u8]) -> IResult<&[u8], PgsqlBEMessage> { } #[cfg(test)] +#[allow(clippy::vec_init_then_push)] mod tests { use super::*; diff --git a/rust/src/rdp/parser.rs b/rust/src/rdp/parser.rs index a8004e290b..f6e04e410c 100644 --- a/rust/src/rdp/parser.rs +++ b/rust/src/rdp/parser.rs @@ -1103,6 +1103,7 @@ mod tests_negotiate_49350 { } #[cfg(test)] +#[allow(clippy::vec_init_then_push)] mod tests_core_49350 { use crate::rdp::parser::*;