rustfmt.toml: Enable additional formatting options

Enable more settings, including some that are currently unstable. Prefer
options that are also used by the Rust project itself [1].

[1] 64a965e901/rustfmt.toml (L5-L6)

Acked-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Marc Hartmayer <marc@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2026-05-11 14:34:01 +02:00
committed by Jan Höppner
parent ddc8248b21
commit 3d5f75d6c3

View File

@@ -1,13 +1,12 @@
edition = "2021" edition = "2021"
newline_style = "Unix" newline_style = "Unix"
# Unstable options that help catching some mistakes in formatting and that we may want to enable # Unstable options that help catching some mistakes in formatting
# when they become stable. group_imports = "StdExternalCrate"
# imports_granularity = "Module"
# They are kept here since they are useful to run from time to time. use_field_init_shorthand = true
#comment_width = 100 comment_width = 100
#format_code_in_doc_comments = true format_code_in_doc_comments = true
#group_imports = "StdExternalCrate" normalize_comments = true
#normalize_comments = true wrap_comments = true
#reorder_impl_items = true #reorder_impl_items = true
#wrap_comments = true