]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow clippy::unused_unit for tests that use the test macro
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 21:57:22 +0000 (15:57 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 21:57:22 +0000 (15:57 -0600)
The cause of the issue comes from the macro, which is provided by a
crate. Bust just to allow this for now.

rust/src/asn1/mod.rs
rust/src/asn1/parse_rules.rs
rust/src/bittorrent_dht/parser.rs
rust/src/quic/cyu.rs

index 7496d44488105a485f596619d94e9c40ad6a7436..b43d308ab65b2a3ac314d4311699c4329c60cf6d 100644 (file)
@@ -288,6 +288,7 @@ impl From<Err<der_parser::error::BerError>> for Asn1DecodeError {
 }
 
 #[cfg(test)]
+#[allow(clippy::unused_unit)]
 mod tests {
     use super::*;
     use test_case::test_case;
index 9a857868db9836c419e0cbca9899054c12fcdcae..b324ecf075104be70f85a885d2b27f2cc2e6611c 100644 (file)
@@ -209,6 +209,7 @@ pub(super) fn asn1_parse_rule(input: &str) -> IResult<&str, DetectAsn1Data> {
 }
 
 #[cfg(test)]
+#[allow(clippy::unused_unit)]
 mod tests {
     use super::*;
     use test_case::test_case;
index 545a1ad53774694a2d88ac86a87862cd125053c3..ee0d23094729234583250709fbcaafbc26a3745a 100644 (file)
@@ -444,6 +444,7 @@ pub fn parse_bittorrent_dht_packet(
 }
 
 #[cfg(test)]
+#[allow(clippy::unused_unit)]
 mod tests {
     use super::*;
     use crate::core::Direction;
index 026467816c365dca125143d02939589d258339fd..44a3143069e78fbbbc8de2b3772e9c8c0c59757d 100644 (file)
@@ -78,6 +78,7 @@ impl Cyu {
 }
 
 #[cfg(test)]
+#[allow(clippy::unused_unit)]
 mod tests {
     use super::*;
     use crate::quic::frames::{Frame, Stream, StreamTag};