From c7ff76cac5be516e70cda325836828bc4fc564cf Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 18 Feb 2025 15:37:51 -0600 Subject: [PATCH] rust: allow vec_init_then_push in tests To supress the clippy lint in tests. --- rust/src/pgsql/parser.rs | 1 + rust/src/rdp/parser.rs | 1 + 2 files changed, 2 insertions(+) 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::*;