chore: upgrade remaining 2018 edition crates to 2021 edition (#5788)

This commit is contained in:
Taiki Endo
2023-06-12 02:21:50 +09:00
committed by GitHub
parent 6257712d68
commit af6c87a045
12 changed files with 15 additions and 16 deletions
+2 -2
View File
@@ -495,8 +495,8 @@ jobs:
- name: "rustfmt --check"
# Workaround for rust-lang/cargo#7732
run: |
if ! rustfmt --check --edition 2018 $(git ls-files '*.rs'); then
printf "Please run \`rustfmt --edition 2018 \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
if ! rustfmt --check --edition 2021 $(git ls-files '*.rs'); then
printf "Please run \`rustfmt --edition 2021 \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
exit 1
fi