diff options
author | Jeb Rosen <jeb@jebrosen.com> | 2020-07-28 13:30:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 13:30:33 -0700 |
commit | 51e7933c35ecdc76f987afd39030442fbc32c5dc (patch) | |
tree | 5fb784e1cfb66b5c8d9e3cd3e354ccdff6aec858 | |
parent | 027351dd3a6da88d1b2ed9c687b96fa4ca8a7a6d (diff) |
ci: add information to the rustfmt check, hinting at the necessary fix (#2673)
-rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 054cf116..f24bdb88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -184,7 +184,11 @@ jobs: # Check fmt - name: "rustfmt --check" # Workaround for rust-lang/cargo#7732 - run: rustfmt --check --edition 2018 $(find . -name '*.rs' -print) + run: | + if ! rustfmt --check --edition 2018 $(find . -name '*.rs' -print); then + printf "Please run \`rustfmt --edition 2018 \$(find . -name '*.rs' -print)\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2 + exit 1 + fi clippy: name: clippy |