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
Hmm, so I think that we should try to break the arm patterns into multiple lines if the arm body is empty. If that is not possible, then put the empty block on the next line:
See here, for instance, where rustfmt decided that
was ideal. This looks ugly —
{}
(and any other paired symbols) should be kept together.I originally opened this as #4098, but had not pointed out that this is in violating of the formatting spec: according to the RFC, empty blocks should be written
{}
: https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/expressions.md#blocks. This rule should take precedence over the line width rule.The text was updated successfully, but these errors were encountered: