You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It splits the selection in the first argument, but does not put the second arguments on a newline, which is really confusing to me. It looks like (assertEq (..)).rustc instead of assertEq ((..).rustc)
In a function application chain, the first element is treated as the "function" and the remaining ones as "arguments".
As many arguments as possible must be fit onto the first line.
If there is at most one multi-line argument that can be absorbed and all other arguments before/after fit onto a single line respectively, then that multi-line argument is absorbed.
Thus the first argument should be inlined as a whole, and the second argument should be put on a new line (otherwise it would exceed the max width 100).
The text was updated successfully, but these errors were encountered:
Description
Related: #153
I'm trying to apply RFC 166 style on rust-overlay and noticed this weird formatting.
Small example input
Expected output
Actual output
It splits the selection in the first argument, but does not put the second arguments on a newline, which is really confusing to me. It looks like
(assertEq (..)).rustc
instead ofassertEq ((..).rustc)
Rationale
As described in RFC 166:
Thus the first argument should be inlined as a whole, and the second argument should be put on a new line (otherwise it would exceed the max width 100).
The text was updated successfully, but these errors were encountered: