You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently changed the interaction of attributes and fields/variants - we put them on separate lines for struct fields and the same lines for enum variants. However, for complex enum variants this looks sub-optimal. I wonder if we should class enum variants with struct fields? Or more precisely any sub-item which has its own line should have an attribute on a different line, and any sub-item formatted on a line with other sub-items has same-line attributes.
I just added same_line_attributes = false to my rustfmt.toml to workaround exactly this issue, but after yesterday update that config is gone and enum variants are reformatted back to long lines.
We recently changed the interaction of attributes and fields/variants - we put them on separate lines for struct fields and the same lines for enum variants. However, for complex enum variants this looks sub-optimal. I wonder if we should class enum variants with struct fields? Or more precisely any sub-item which has its own line should have an attribute on a different line, and any sub-item formatted on a line with other sub-items has same-line attributes.
E.g.,
The text was updated successfully, but these errors were encountered: