-
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
How to configure rustfmt to align types of struct fields? #1287
Labels
Comments
It is not possible at the moment, sorry. It is somewhat tricky to implement and would need some deep changes to implement generally, but might be easier to do in restricted cases like this. If you're interested in implementing, I can mentor. This is a dup of #1103, so closing. |
Is it now be possible? @nrc |
@wasd96040501 please see the struct_field_align_threshold option. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Readability is quite important, so instead of
I'd like to use the much cleaner variant:
How can I say to rustfmt that it should use the latter one?
The text was updated successfully, but these errors were encountered: