aboutsummaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-18 06:24:50 +0000
committerFuwn <[email protected]>2023-05-18 06:24:50 +0000
commit56f53ddca0135e17708af585bfb50144d6836f55 (patch)
tree1d5beea4c266a7d9bdd50fe4750540d618b0b160 /rustfmt.toml
parentfix: improve macro hygiene (diff)
downloadgerm-56f53ddca0135e17708af585bfb50144d6836f55.tar.xz
germ-56f53ddca0135e17708af585bfb50144d6836f55.zip
fmt: update rustfmt.toml
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml24
1 files changed, 10 insertions, 14 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index 1dd4c90..5ad42f8 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,30 +1,26 @@
-condense_wildcard_suffixes = true
edition = "2021"
-enum_discrim_align_threshold = 20
+enum_discrim_align_threshold = 40
# error_on_line_overflow = true
# error_on_unformatted = true
fn_single_line = true
-force_multiline_blocks = true
format_code_in_doc_comments = true
format_macro_matchers = true
format_strings = true
-imports_layout = "HorizontalVertical"
-license_template_path = ".license_template"
-max_width = 80
+inline_attribute_width = 80
match_arm_blocks = false
-imports_granularity = "Crate"
+max_width = 80
+imports_granularity = "One"
+merge_imports = true
newline_style = "Unix"
-normalize_comments = true
normalize_doc_attributes = true
+overflow_delimited_expr = true
reorder_impl_items = true
group_imports = "StdExternalCrate"
-reorder_modules = true
-report_fixme = "Always"
-# report_todo = "Always"
-struct_field_align_threshold = 20
-struct_lit_single_line = false
+required_version = "1.5.2"
+struct_field_align_threshold = 40
tab_spaces = 2
use_field_init_shorthand = true
+use_small_heuristics = "Max"
use_try_shorthand = true
-where_single_line = true
+version = "Two"
wrap_comments = true