diff options
| author | Nathan Perry <np@npry.dev> | 2024-09-17 16:21:58 -0400 |
|---|---|---|
| committer | Nathan Perry <np@npry.dev> | 2024-09-17 16:22:06 -0400 |
| commit | d0c5bd9a0b27710eb0b4e69880e57fb9d33844f8 (patch) | |
| tree | d2efeb37e6d8d874ce568f84f790d3aa8999866b /.rustfmt.toml | |
| parent | df3afac081acea1cb8fd081dfd935973a9eaeed6 (diff) | |
add rustfmt
Diffstat (limited to '.rustfmt.toml')
| -rw-r--r-- | .rustfmt.toml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..700c0b5 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,44 @@ +blank_lines_upper_bound = 1 +brace_style = "SameLineWhere" +condense_wildcard_suffixes = true +control_brace_style = "AlwaysSameLine" +edition = "2018" +empty_item_single_line = true +enum_discrim_align_threshold = 25 +fn_args_layout = "Tall" +force_explicit_abi = true +force_multiline_blocks = false +format_macro_matchers = true +format_macro_bodies = true +hard_tabs = false +imports_indent = "Block" +imports_layout = "Vertical" +indent_style = "Block" +inline_attribute_width = 0 +match_arm_blocks = true +match_block_trailing_comma = true +max_width = 100 +merge_derives = true +imports_granularity="Crate" +newline_style = "Unix" +normalize_comments = true +normalize_doc_attributes = true +overflow_delimited_expr = true +remove_nested_parens = true +reorder_impl_items = true +reorder_imports = true +reorder_modules = true +space_after_colon = true +space_before_colon = false +spaces_around_ranges = false +struct_field_align_threshold = 25 +struct_lit_single_line = true +tab_spaces = 4 +trailing_comma = "Vertical" +trailing_semicolon = true +type_punctuation_density = "Wide" +use_field_init_shorthand = true +use_small_heuristics = "Off" +use_try_shorthand = true +version = "Two" +where_single_line = false |
