Skip to content

Commit

Permalink
test: fix lint step
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Sep 23, 2023
1 parent fae4ca4 commit da5fdfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:

- name: Lint
run: |
if ! rustfmt --check ./src/*.rs; then
echo "Please run 'rustfmt' to format your code."
rustfmt ./**/*.rs
if ! git diff --exit-code; then
echo "Please run 'rustfmt --check ./**/*.rs' to lint your code."
exit 1
fi
Expand Down

0 comments on commit da5fdfe

Please sign in to comment.