/ .rustfmt.toml
.rustfmt.toml
 1  edition = "2021"
 2  fn_params_layout = "Vertical"
 3  match_arm_leading_pipes = "Preserve"
 4  match_block_trailing_comma = true
 5  max_width = 98
 6  reorder_modules = false
 7  use_field_init_shorthand = true
 8  use_small_heuristics = "Max"
 9  use_try_shorthand = true
10  
11  unstable_features = true
12  blank_lines_upper_bound = 2
13  brace_style = "AlwaysNextLine"
14  control_brace_style = "ClosingNextLine"
15  combine_control_expr = false
16  comment_width = 98
17  enum_discrim_align_threshold = 60
18  error_on_line_overflow = true
19  error_on_unformatted = true
20  format_strings = true
21  format_macro_matchers = true
22  group_imports = "StdExternalCrate"  # Ineffective with imports_granularity="One"
23  imports_granularity = "One"
24  imports_layout = "Vertical"
25  match_arm_blocks = false
26  normalize_doc_attributes = true
27  overflow_delimited_expr = true
28  reorder_impl_items = true
29  # report_fixme = "Unnumbered"  # Don't want for every random file, but can be desirable at times.
30  # report_todo = "Unnumbered"   # Don't want for every random file, but can be desirable at times.
31  spaces_around_ranges = true
32  struct_field_align_threshold = 40
33  version = "Two"
34  where_single_line = true
35  wrap_comments = true