Skip to content

Commit bf32bcd

Browse files
committed
ci: check all rust code for formatting
1 parent af246ae commit bf32bcd

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/rust.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,9 @@ jobs:
9494
# especially without debug feature
9595
- run: cargo clippy
9696
working-directory: rust
97-
- run: cargo fmt --check
98-
working-directory: rust/suricatactl
99-
- run: cargo fmt --check
100-
working-directory: rust/suricatasc
101-
- run: cargo fmt --check
102-
working-directory: rust/sys
97+
- name: Check Rust formatting
98+
run: cargo fmt --check
99+
working-directory: rust
103100
- name: Check if Cargo.lock.in is up to date
104101
run: |
105102
cp rust/Cargo.lock rust/Cargo.lock.in
@@ -109,6 +106,3 @@ jobs:
109106
echo "::error ::Cargo.lock.in needs to be updated"
110107
exit 1
111108
fi
112-
# does not work in other subdirectories for now
113-
- run: cargo fmt --check
114-
working-directory: rust/htp

0 commit comments

Comments
 (0)