Open
Description
Sometimes I want to insert line breaks in long expressions to better reflect their logical structure.
With clang-format this is possible by inserting a line-end comment at the desired break point (even if it's just an empty //
).
As far as I can see, rustfmt just stops formatting such expressions altogether (is this a bug?). It strips empty comments, but that can be worked around with something like //.
.