Skip to content

Commit b5a8374

Browse files
committed
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".
1 parent acbd120 commit b5a8374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustfmt.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ match_block_trailing_comma = false
5353
blank_lines_upper_bound = 1
5454
blank_lines_lower_bound = 0
5555
edition = "2018"
56-
version = "One"
56+
style_edition = "2021"
5757
inline_attribute_width = 0
5858
format_generated_files = true
5959
merge_derives = true

0 commit comments

Comments
 (0)