Skip to content

Commit 08234b2

Browse files
Add rustfmt config with edition 2024 (#7888)
Since we updated to edition 2024 my Vim plugin for rustfmt is formatting code incorrectly, with 2018 settings: https://github.com/rust-lang/rust.vim/blob/889b9a7515db477f4cb6808bef1769e53493c578/autoload/rustfmt.vim#L74-L75 Arguably this plugin is a bit junk, but I think it's fairly harmless to add this config. Add `rustfmt.toml`. This is a generic config file for `rustfmt` which is probably useful for `rustfmt` integration with other editors too. We may want to add other config to `rustfmt.toml` over time as well, I think this was discussed recently.
1 parent aa8cba3 commit 08234b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
edition = "2024"

0 commit comments

Comments
 (0)