]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: suppress large enum variant lint at location
authorJason Ish <jason.ish@oisf.net>
Tue, 4 Oct 2022 15:26:37 +0000 (09:26 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Oct 2022 09:20:07 +0000 (11:20 +0200)
And disable the global lint.

rust/src/krb/detect.rs
rust/src/lib.rs

index 7f408088eae5c1e66c1d210b7bd6ee27194cdc00..6274c1b37b99f0b6b13500847546dbad6c36f0ac 100644 (file)
@@ -97,7 +97,11 @@ impl DetectKrb5TicketEncryptionList {
     }
 }
 
+
+// Suppress large enum variant lint as the LIST is very large compared
+// to the boolean variant.
 #[derive(Debug)]
+#[allow(clippy::large_enum_variant)]
 pub enum DetectKrb5TicketEncryptionData {
     WEAK(bool),
     LIST(DetectKrb5TicketEncryptionList),
index c2556987c3b7d25ee7bc7305e52399facd395791..c315b28d4c9024afb412bb501a0a6877c898d67b 100644 (file)
@@ -45,7 +45,6 @@
 #![allow(clippy::field_reassign_with_default)]
 #![allow(clippy::for_loops_over_fallibles)]
 #![allow(clippy::if_same_then_else)]
-#![allow(clippy::large_enum_variant)]
 #![allow(clippy::manual_find)]
 #![allow(clippy::map_flatten)]
 #![allow(clippy::match_like_matches_macro)]