From 5fb04d2edb40a536b3ed11b9d3cd2133faee6a3c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 16 Sep 2025 20:07:49 +0800 Subject: rustfmt: workaround for max_width sideeffects upstream bug tracker: https://github.com/rust-lang/rustfmt/issues/6338 --- dot-config/rustfmt/rustfmt.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dot-config/rustfmt/rustfmt.toml b/dot-config/rustfmt/rustfmt.toml index 91d62c55..725bac0d 100644 --- a/dot-config/rustfmt/rustfmt.toml +++ b/dot-config/rustfmt/rustfmt.toml @@ -1 +1,13 @@ max_width = 104400000000 +use_small_heuristics = "Max" + +chain_width = 72 +fn_call_width = 72 +attr_fn_like_width = 72 +array_width = 72 +struct_lit_width = 72 +struct_variant_width = 72 +single_line_if_else_max_width = 72 + +wrap_comments = true +format_code_in_doc_comments = true -- cgit v1.2.3