From b032dae29717935c303610642e814d07d8e1b823 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 14 Oct 2021 00:23:10 -0400 Subject: [PATCH] Use 2021 edition if specified to fmt command No longer fall back to 2018 edition when 2021 edition is specified to the fmt command since it is now supported. --- src/code_execution/playground/util.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/code_execution/playground/util.rs b/src/code_execution/playground/util.rs index 6008908..6491785 100644 --- a/src/code_execution/playground/util.rs +++ b/src/code_execution/playground/util.rs @@ -266,8 +266,7 @@ pub fn apply_local_rustfmt(text: &str, edition: api::Edition) -> Result "2015", api::Edition::E2018 => "2018", - // Fallback to 2018 edition when 2021 was specified since `rustfmt` does not support it yet - api::Edition::E2021 => "2018", + api::Edition::E2021 => "2021", }, "--color", "never",