From 0b9df31a414185ead280ba6228ae0d4e23f79514 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 19 Feb 2026 05:39:29 +0000 Subject: [PATCH] Add explicit edition in rustfmt.toml for wider editor/ide compat. Signed-off-by: Jason Volk --- Cargo.toml | 1 + rustfmt.toml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c7e5482a..cd76162c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ authors = [ ] categories = ["network-programming"] description = "High Performance Matrix Homeserver in Rust!" +# also update edition in rustfmt.toml edition = "2024" homepage = "https://tuwunel.chat" keywords = [ diff --git a/rustfmt.toml b/rustfmt.toml index 9538c3d6..e092f691 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,9 +1,11 @@ +edition = "2024" +style_edition = "2024" + array_width = 80 attr_fn_like_width = 60 chain_width = 50 comment_width = 80 condense_wildcard_suffixes = true -style_edition = "2024" fn_call_width = 80 fn_single_line = true format_code_in_doc_comments = true