Skip to content

Commit

Permalink
Update deprecated field in rustfmt.toml
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
JoseSK999 committed Nov 10, 2024
1 parent acbd120 commit b5a8374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5a8374

Please sign in to comment.