mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +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
|
# Check fmt
|
||||||
- name: "rustfmt --check"
|
- name: "rustfmt --check"
|
||||||
# Workaround for rust-lang/cargo#7732
|
# 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:
|
clippy:
|
||||||
name: clippy
|
name: clippy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user