]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow static_mut_refs for now
authorJason Ish <jason.ish@oisf.net>
Thu, 28 Nov 2024 16:06:29 +0000 (10:06 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 4 Dec 2024 18:35:17 +0000 (12:35 -0600)
But we should fix all these soon.

(cherry picked from commit 4c12165816681e97959be3e1e1cf28c6195a84da)

rust/src/lib.rs

index 7091e73e823f28967933a566cc7ac59ca0c11e05..6782cc307a2683b1531a24f3df268a34ce00016e 100644 (file)
 // cf https://github.com/mozilla/cbindgen/issues/709
 #![allow(unused_doc_comments)]
 
+// Allow unknown lints, our MSRV doesn't know them all, for
+// 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;