Skip to content

Commit

Permalink
Test that all source files are covered by rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 26, 2024
1 parent 378cdc5 commit 6f8f142
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
toolchain: stable
components: rustfmt
- run: cargo fmt -- --check
- name: test that all source files are covered by rustfmt
run: |
for f in $(find src -name '*.rs'); do echo -e '\n\n\n\n\n' >> $f; done
cargo fmt
git diff --exit-code # expect all changes from above wiped away
clippy:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 6f8f142

Please sign in to comment.