]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: remove allow of static mutables
authorJason Ish <jason.ish@oisf.net>
Mon, 24 Feb 2025 22:47:28 +0000 (16:47 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Feb 2025 05:57:44 +0000 (06:57 +0100)
As references to static mutables are highly discouraged, remove the
global suppressing of the compiler warning. Each use case can be
suppressed as needed.

Ticket: #7417

rust/src/lib.rs

index ad280a368d2d10f14ae9a842587824160657bb60..bdf3d6b1c2d1e94e5f12ec8eda0e9288bc999bf6 100644 (file)
@@ -57,9 +57,6 @@
 // example static_mut_refs.
 #![allow(unknown_lints)]
 
-// Allow for now, but need to be fixed.
-#![allow(static_mut_refs)]
-
 #[macro_use]
 extern crate bitflags;
 extern crate byteorder;