From 08234b2823e8e5c4116568429f8c8b74c38a569b Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Mon, 18 Aug 2025 14:32:58 +1000 Subject: [PATCH] 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. --- rustfmt.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000000..f216078d96 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2024"