From f14a7f5c0a7be9242818797af515872c9996b9b9 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 4 Nov 2023 20:57:37 +0900 Subject: [PATCH] chore(ci): fix rustfmt edition to 2018 --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aae0db6fcf..3ba2aa2459 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -43,8 +43,8 @@ jobs: - name: cargo fmt --check run: | - 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 + 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 exit 1 fi