From: Jason Ish Date: Mon, 24 Feb 2025 22:47:28 +0000 (-0600) Subject: rust: remove allow of static mutables X-Git-Tag: suricata-8.0.0-beta1~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c33bebd630b304ab2a6ea9cf13fb150d7abf0fbc;p=thirdparty%2Fsuricata.git rust: remove allow of static mutables 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 --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index ad280a368d..bdf3d6b1c2 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -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;