rustfmt.toml 561 B

123456789101112131415161718
  1. # Merge similar crates together to avoid multiple use statements.
  2. imports_granularity = "Module"
  3. # Consistency in formatting makes tool based searching/editing better.
  4. empty_item_single_line = false
  5. # Easier editing when arbitrary mixed use statements do not collapse.
  6. imports_layout = "Vertical"
  7. # Default rustfmt formatting of match arms with branches is awful.
  8. match_arm_leading_pipes = "Preserve"
  9. # Align Fields
  10. enum_discrim_align_threshold = 80
  11. struct_field_align_threshold = 80
  12. # Allow up to two blank lines for grouping.
  13. blank_lines_upper_bound = 2