aboutsummaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 15:18:40 +0000
committerFuwn <[email protected]>2024-06-03 15:18:40 +0000
commitc7e42fbf267df41c88647097064d3f742fbf4f7c (patch)
tree0c071d7fc877615a6a66d2cc310620b3856a53d3 /rustfmt.toml
parentci(rust): update workflow rustc (diff)
downloadarchived-whirl-c7e42fbf267df41c88647097064d3f742fbf4f7c.tar.xz
archived-whirl-c7e42fbf267df41c88647097064d3f742fbf4f7c.zip
chore(rustfmt): add new rules
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml29
1 files changed, 12 insertions, 17 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index 0e9396b..5ee3d12 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,30 +1,25 @@
-condense_wildcard_suffixes = true
-edition = "2018"
-enum_discrim_align_threshold = 20
-error_on_line_overflow = true
-error_on_unformatted = true
+edition = "2021"
+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
-ignore = ["crates/whirl_db/src/schema.rs"]
-imports_layout = "HorizontalVertical"
-license_template_path = ".license_template"
+inline_attribute_width = 80
match_arm_blocks = false
-imports_granularity = "Crate"
+max_width = 80
+imports_granularity = "One"
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
+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
+ignore = ["crates/whirl_db/src/schema.rs"]