From b4ac306fc2fbe978e0dc39d9178fd342f38d53fe Mon Sep 17 00:00:00 2001 From: david-perez Date: Tue, 13 Sep 2022 13:10:54 +0200 Subject: [PATCH] Use Rust 2021 edition with `rustfmt` in CI (#1728) We've long migrated to the 2021 edition everywhere. See PRs #1388, #1328, and #1268. See issue #1332 too. --- tools/ci-build/scripts/check-style-and-lints | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci-build/scripts/check-style-and-lints b/tools/ci-build/scripts/check-style-and-lints index 804b2e01618..27f9e2597db 100755 --- a/tools/ci-build/scripts/check-style-and-lints +++ b/tools/ci-build/scripts/check-style-and-lints @@ -11,7 +11,7 @@ sdk-lints check --all sdk-lints fix --all # shellcheck disable=SC2046 -rustfmt --check --edition 2018 $(find . -name '*.rs' -print | grep -v /target/) +rustfmt --check --edition 2021 $(find . -name '*.rs' -print | grep -v /target/) ./gradlew -p buildSrc test ./gradlew ktlint