-
Notifications
You must be signed in to change notification settings - Fork 876
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
Poor TAIT formatting with version = "Two"
:
line breaks are not block indented
#5027
Comments
I can't reproduce this with default behavior, and have to change the default value of the That is of course something we need to fix, but I need to get some clarity on whether this can actually be produced with all defaults. Can you share your rustfmt config file, and/or share output from running rustfmt in verbose mode? |
line breaks are not block indentedversion = "Two"
:
line breaks are not block indented
My bad. My rustfmt.toml is a single line |
No worries, thanks for clarifying! |
fwiw, this is the PR/diff that has introduced this: 1643d72#diff-ed12f5ea605f23bb4d26cc65778e3daff9db3eec40e2abfc82beafca130a99a0R751. #4373 seems related. |
Currently on 1.4.37-nightly (dfc5add 2021-10-13), with
version = "Two"
and all other options left at default, this:is formatted to:
...whereas on stable, the same code is formatted to the more familiar and (subjectively) more pleasing:
...with block indentation for the broken lines.
The text was updated successfully, but these errors were encountered: