diff options
| author | Fuwn <[email protected]> | 2023-05-22 06:35:38 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-22 06:35:38 +0000 |
| commit | 40ac215ef05e723d1793cb90677d738abe4ab2fe (patch) | |
| tree | 76d54a809c15596d7c7af77ade4bde64853ff7b3 /rustfmt.toml | |
| parent | deps(gmi): finally drop gmi (diff) | |
| download | september-40ac215ef05e723d1793cb90677d738abe4ab2fe.tar.xz september-40ac215ef05e723d1793cb90677d738abe4ab2fe.zip | |
fmt: update rustfmt config
Diffstat (limited to 'rustfmt.toml')
| -rw-r--r-- | rustfmt.toml | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index c2072ca..944c756 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,16 +1,27 @@ edition = "2021" -condense_wildcard_suffixes = true +enum_discrim_align_threshold = 40 +# error_on_line_overflow = true +# error_on_unformatted = true fn_single_line = true format_code_in_doc_comments = true -doc_comment_code_block_width = 80 +format_macro_matchers = true format_strings = true +inline_attribute_width = 80 match_arm_blocks = false max_width = 80 -imports_granularity = "Crate" -normalize_comments = true +imports_granularity = "One" +merge_imports = true +newline_style = "Unix" normalize_doc_attributes = true +overflow_delimited_expr = true reorder_impl_items = true group_imports = "StdExternalCrate" +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 +version = "Two" wrap_comments = true + |