From: Jason Ish Date: Fri, 16 May 2025 00:36:58 +0000 (-0600) Subject: rust/htp: suppress io_other_error lint X-Git-Tag: suricata-8.0.0-rc1~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90297788f6fe7d3be013637f2b13e3c907ca3764;p=thirdparty%2Fsuricata.git rust/htp: suppress io_other_error lint The fix for this lint requires Rust 1.74. --- diff --git a/rust/htp/src/lib.rs b/rust/htp/src/lib.rs index 9184ffb457..7042e80960 100644 --- a/rust/htp/src/lib.rs +++ b/rust/htp/src/lib.rs @@ -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.