summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml6
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