From 323e70611358c7db5b7e7be0c064df69725fafc1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 10 Oct 2024 10:41:16 +1100 Subject: [PATCH] Add rustfmt config option style_edition rustfmt is emitting: Warning: the version option is deprecated. Use style_edition instead. As suggested add a config option and set it to 2021. --- rustfmt.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfmt.toml b/rustfmt.toml index c8a2256ec..08c331b51 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -58,7 +58,7 @@ match_block_trailing_comma = false blank_lines_upper_bound = 1 blank_lines_lower_bound = 0 edition = "2021" -version = "One" +style_edition = "2021" inline_attribute_width = 0 format_generated_files = true merge_derives = true