From b5a8374eb0f59dac0616a6f2600a2cf08fd8f98b Mon Sep 17 00:00:00 2001 From: Sexosexosexo Date: Sun, 10 Nov 2024 14:08:54 +0100 Subject: [PATCH] Update deprecated field in rustfmt.toml This fixes the "Warning: the `version` option is deprecated. Use `style_edition` instead." that we see when running `cargo +nightly fmt`. The 2021 edition is the last one matching the version "One". --- rustfmt.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfmt.toml b/rustfmt.toml index abddaae09..7858570c4 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -53,7 +53,7 @@ match_block_trailing_comma = false blank_lines_upper_bound = 1 blank_lines_lower_bound = 0 edition = "2018" -version = "One" +style_edition = "2021" inline_attribute_width = 0 format_generated_files = true merge_derives = true