]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/htp: suppress io_other_error lint
authorJason Ish <jason.ish@oisf.net>
Fri, 16 May 2025 00:36:58 +0000 (18:36 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 16 May 2025 04:45:28 +0000 (06:45 +0200)
The fix for this lint requires Rust 1.74.

rust/htp/src/lib.rs

index 9184ffb45738bf020d1ce58f9ca75acb89a7ffcd..7042e80960d76ac72c3dc743637614c20e3b0102 100644 (file)
@@ -6,9 +6,16 @@
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 #![allow(non_upper_case_globals)]
+
+// Allow unknown lints, our MSRV doesn't know them all, for
+// example static_mut_refs.
+#![allow(unknown_lints)]
+
+// Requires MSRV of 1.74 to fix.
+#![allow(clippy::io_other_error)]
+
 #[repr(C)]
 #[derive(PartialEq, Eq, Debug)]
-
 /// Status codes used by LibHTP internally.
 pub enum HtpStatus {
     /// The lowest value LibHTP will use internally.