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.
This commit is contained in:
Tobin C. Harding 2024-10-10 10:41:16 +11:00
parent 2e4179ed0f
commit 323e706113
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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