Skip to content

Commit

Permalink
chore(style): no auto-format macro bodies
Browse files Browse the repository at this point in the history
prevents matching like breaking of braces across
multiple lines (this is the impetus at least)
, which can make wide, simple macros
, e.g. matching large enums, more difficult
to read
  • Loading branch information
dream-dasher committed Jan 7, 2025
1 parent 2f81d90 commit f778e52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ use_field_init_shorthand = true # let _ = some_struct {x, y, z}

## impl organization
reorder_impl_items = true # assoc_type & const at top of impl

## macros
format_macro_bodies = false

0 comments on commit f778e52

Please sign in to comment.