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:

889b9a7515/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.
This commit is contained in:
Michael Sproul
2025-08-18 14:32:58 +10:00
committed by GitHub
parent aa8cba3741
commit 08234b2823

1
rustfmt.toml Normal file
View File

@@ -0,0 +1 @@
edition = "2024"