From d90fd8bcb41878c9fb9d84517d2f8f7be2330977 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Thu, 9 Jun 2022 11:10:48 -0700 Subject: [PATCH] rustfmt: set edition to 2021 We have `edition = "2021"` in our `Cargo.toml` files, so it makes sense to have `rustfmt` use the same edition. That will let us format code using `async` and `await`. I noticed this while looking at @arxanas's fsmonitor PR. --- rustfmt.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rustfmt.toml b/rustfmt.toml index 0e405e4c8..ebf4bed4d 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,4 @@ +edition = "2021" max_width = 100 wrap_comments = true format_strings = true