summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-16 20:07:49 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-16 20:07:49 +0800
commit5fb04d2edb40a536b3ed11b9d3cd2133faee6a3c (patch)
tree13a6ea9b656f2cfa443a7a27d4afbef25ab4e7ee
parentc915f1a33188de8c5cb93c92193af072923e6ff8 (diff)
rustfmt: workaround for max_width sideeffects
upstream bug tracker: https://github.com/rust-lang/rustfmt/issues/6338
-rw-r--r--dot-config/rustfmt/rustfmt.toml12
1 files changed, 12 insertions, 0 deletions
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