Skip to content

Commit 0c8435b

Browse files
committed
Fix rustfmt check command to detect failure
1 parent 6340647 commit 0c8435b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Check formatting
2525
run: |
2626
nix develop --command cargo fmt -- --check
27-
nix develop --command find tests -name *.rs -exec rustfmt {} --check \;
27+
nix develop --command bash -c 'find tests -name "*.rs" -print0 | xargs -0 -n1 rustfmt --check'
2828
2929
- name: Run clippy
3030
run: nix develop --command cargo clippy -- -D warnings

0 commit comments

Comments
 (0)