From 125328da64b90ac1f49486333c1b9fd422f77a8f Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 21 Apr 2022 15:52:32 +0200 Subject: [PATCH] Use Rust 2021 edition for pre-commit's `rustfmt` (#1328) In #1268, runtime crates were updated to Rust 2021 edition. Co-authored-by: Russell Cohen --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec9020ef61..604a31be49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,5 +26,5 @@ repos: - id: pretty-format-yaml args: [--autofix, --indent, '2'] - id: pretty-format-rust - entry: rustfmt --edition 2018 + entry: rustfmt --edition 2021 files: ^.*\.rs$