]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ci: check cargo fmt for htp
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 3 Jun 2025 07:11:24 +0000 (09:11 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Jun 2025 07:39:49 +0000 (09:39 +0200)
.github/workflows/rust.yml
rust/htp/src/lib.rs

index eaa8c6dcbd2715e17c3c2bce37488690349dd003..1481c929ba9d046d3b252647cbe62ad2723de3d4 100644 (file)
@@ -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
index 7042e80960d76ac72c3dc743637614c20e3b0102..0bd93ed5594157adf76259d4bb493a59af4d01f0 100644 (file)
@@ -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)]