-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align enum values in consecutive lines #1686
Labels
Comments
This is a dup of #1103 (and I think one or two other issues). It is somewhat complex for Rustfmt to implement and isn't part of the RFC style, so is unlikely to get implemented soon. |
moxian
added a commit
to moxian/rustfmt
that referenced
this issue
Jun 29, 2018
Part of vertical-alignment effort of rust-lang#1103. Fixes rust-lang#1686
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #1684
is changed to:
and IMHO it looks sloppy. I'd prefer all numbers to be in the same column. Of course maintaining such alignment by hand is tedious, so rustfmt would be especially useful in this case.
I also have enums where the values are related (e.g. ranges of consecutive numbers, powers of two, unions of flags), so having the values exactly one under another helps seeing the patterns.
The text was updated successfully, but these errors were encountered: