]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow vec_init_then_push in tests
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 21:37:51 +0000 (15:37 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 21:37:51 +0000 (15:37 -0600)
To supress the clippy lint in tests.

rust/src/pgsql/parser.rs
rust/src/rdp/parser.rs

index 502d3529fc03e0641f44b2d90fa30e57715411de..4a2ccef9a391e5fdde95a80b8bb194d668f5bca9 100644 (file)
@@ -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::*;
index a8004e290b9679df642807d77562a2810e860ac0..f6e04e410c8716720763ed2c48c9f213b72139bc 100644 (file)
@@ -1103,6 +1103,7 @@ mod tests_negotiate_49350 {
 }
 
 #[cfg(test)]
+#[allow(clippy::vec_init_then_push)]
 mod tests_core_49350 {
     use crate::rdp::parser::*;