From 51e7933c35ecdc76f987afd39030442fbc32c5dc Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Tue, 28 Jul 2020 13:30:33 -0700 Subject: ci: add information to the rustfmt check, hinting at the necessary fix (#2673) --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github') 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 -- cgit v1.2.3