From 9d447d9266b9cb356dc26ddcdbd515bf67189820 Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Sun, 1 Sep 2024 20:48:32 +0200 Subject: [PATCH] added rustfmt.toml --- rustfmt.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..e3b2313 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,13 @@ +imports_granularity = "Module" +group_imports = "StdExternalCrate" + +# Activation of features, almost objectively better ;) +use_try_shorthand = true +use_field_init_shorthand = true + +# Nightly only. Will not run in CI, but please format with these locally +wrap_comments = true +normalize_comments = true +comment_width = 100 + +condense_wildcard_suffixes = true