-
Notifications
You must be signed in to change notification settings - Fork 898
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
empty_item_single_line
should apply to trait definitions as well
#5047
Comments
empty_item_single_line
should apply to trait definitions as well
Update: This seems to be a problem with |
Thanks for the report. Seems the handling of For anyone interested in working on this, suspect you'll probably want to start somewhere around here: Lines 1125 to 1172 in bc46af9
The |
Hi. Can I try this one? |
Absolutely! |
1.4.37-nightly
Using this rustfmt.toml
rustfmt will format the following code like this:
This is inconsistent, and empty traits end up sticking out like a sore thumb. Intended behaviour is probably this:
This is important, as empty traits are often quite useful. For instance, you might want something like this:
which will look quite ugly at the moment.
The text was updated successfully, but these errors were encountered: