From: Philippe Antoine Date: Tue, 3 Jun 2025 07:11:24 +0000 (+0200) Subject: ci: check cargo fmt for htp X-Git-Tag: suricata-8.0.0-rc1~197 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c88d3757085d68a1ba1132b75ebe597b041f79c;p=thirdparty%2Fsuricata.git ci: check cargo fmt for htp --- diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index eaa8c6dcbd..1481c929ba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -108,5 +108,5 @@ jobs: exit 1 fi # does not work in other subdirectories for now - - run: cargo fmt + - run: cargo fmt --check working-directory: rust/htp diff --git a/rust/htp/src/lib.rs b/rust/htp/src/lib.rs index 7042e80960..0bd93ed559 100644 --- a/rust/htp/src/lib.rs +++ b/rust/htp/src/lib.rs @@ -6,11 +6,9 @@ #![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)]