Skip to content

Commit 6a362ae

Browse files
authored
Fix incorrect key name in rustfmt.toml (#1005)
rustfmt.toml's 'edition' key only controls parsing behavior. We should leave this to the default (read from Cargo.toml) so that rustfmt's parsing behavior always matches what our code is targeting. Formatting behavior is controlled by this separate key, 'style_edition', which we can change separately from the actual code edition. This will allow us to take 2024 edition formatting changes separately from code behavior changes, should we so choose. Part of #288
1 parent fb4fc6b commit 6a362ae

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
@@ -3,4 +3,4 @@
33

44
newline_style="unix"
55
use_field_init_shorthand=true
6-
edition="2021"
6+
style_edition="2021"

0 commit comments

Comments
 (0)