Skip to content

Commit

Permalink
Merge pull request #1399 from dtolnay-contrib/testfmt
Browse files Browse the repository at this point in the history
Test that all source files are covered by rustfmt
  • Loading branch information
GuillaumeGomez authored Nov 26, 2024
2 parents 378cdc5 + 710ac5d commit 5721f84
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 5721f84

Please sign in to comment.