Skip to content

Commit c55a347

Browse files
authored
Merge pull request #12 from avandecreme/fix_tests_fmt_check
Fix rustfmt check command to detect failure
2 parents 6340647 + 0c8435b commit c55a347

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)