We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{}
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
See here, for instance, where rustfmt decided that
(AngleBracketedArg::Arg(_), None) | (AngleBracketedArg::Constraint(_), Some(_)) => { }
was ideal. This looks silly — {} (and any other paired symbols) should be kept together.
The text was updated successfully, but these errors were encountered:
Thank you for the report. However this is expected, { is the 100th character on the line, and putting } on the same line will exceed the max width.
{
}
Sorry, something went wrong.
I understand why it happens. However, I think this behaviour is wrong: according to the formatting RFC, empty blocks should be written {}: https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/expressions.md#blocks. The current behaviour is also ugly.
cc @topecongiro: I think this should be reopened following #4098 (comment).
No branches or pull requests
See here, for instance, where rustfmt decided that
was ideal. This looks silly —
{}
(and any other paired symbols) should be kept together.The text was updated successfully, but these errors were encountered: