mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
ci: add information to the rustfmt check, hinting at the necessary fix (#2673)
This commit is contained in:
parent
027351dd3a
commit
51e7933c35
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user