From 0d5724a9c58dbdf583e16702952c016bc571e2aa Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat, 9 Dec 2023 04:01:32 +0100 Subject: [PATCH] update rustfmt config --- rustfmt.toml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index cc95c51f..3063df70 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,9 +1,12 @@ -use_small_heuristics = "Max" +reorder_imports = true use_field_init_shorthand = true +use_small_heuristics = "Max" -# unstable - require nightly rustfmt +# Nightly +max_width = 100 +comment_width = 100 imports_granularity = "Crate" wrap_comments = true -comment_width = 100 - -# See more keys and their definitions at https://rust-lang.github.io/rustfmt +format_code_in_doc_comments = true +doc_comment_code_block_width = 100 +format_macro_matchers = true