diff options
| author | Fuwn <[email protected]> | 2024-03-05 05:59:27 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-05 05:59:27 -0800 |
| commit | 30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547 (patch) | |
| tree | 53433b0acade861f6d5e8f8a308d6208199d5ce2 /rustfmt.toml | |
| parent | ci(earthly): switch to earthly from docker (diff) | |
| download | locus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.tar.xz locus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.zip | |
format: new rustfmt.toml
Diffstat (limited to 'rustfmt.toml')
| -rw-r--r-- | rustfmt.toml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index dab6ef1..27653e1 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,27 +1,24 @@ -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" -max_width = 80 +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 -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 |