From 1d6a315b057b7df982ec293fadbaca08f1a0f1a8 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 22 Sep 2023 23:55:19 -0500 Subject: [PATCH] .rustfmt.toml: Configure rustfmt to be slightly more pretty --- .rustfmt.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..c460cf0 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,16 @@ +unstable_features = true +max_width = 100 +wrap_comments = true +comment_width = 100 +struct_lit_width = 100 + +imports_granularity = "Crate" +# Allow structs to fill an entire line +# use_small_heuristics = "Max" +# Allow small functions on single line +# fn_single_line = true + +# Alignment +enum_discrim_align_threshold = 12 +#struct_field_align_threshold = 12 +where_single_line = true