-
Notifications
You must be signed in to change notification settings - Fork 925
Inconsistent Struct Body Opening Brace Placement After Where Clause #5507
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
Comments
@ytmimi I would like to work on this issue as well. I may need some clues on where to start but that's ok tho' c: |
@rustbot claim |
You'll likely want to start at Lines 982 to 997 in 949da52
Lines 1265 to 1301 in 949da52
If I had to guess what the issue is it's that we set the |
@ytmimi Hey! hope you're doing great!
|
It's likely that any change we make would need to be version gated to prevent breaking formatting changes. so we'd only be able to change the behavior when |
When the body of a struct is empty or it only contains comments, the opening brace of the struct body is placed on the same line as the where clause. If the struct body is not empty, the opening brace is placed on a newline.
No configuration values are needed, and I was using
rustfmt 1.5.1-nightly (841b4542 2022-08-17)
when I came across this.Input
Output
The text was updated successfully, but these errors were encountered: