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
Now the line is even longer! It's way past the 100 character limit.
I guess rustfmt is reluctant to introduce linebreaks inside a macro, but then it should just avoid touching this code -- but instead it makes things worse by putting the entire closure on a single line.
The text was updated successfully, but these errors were encountered:
This is a case where the macro fails to parse, and I assume that since it's formatted on one line and the closure only contains a single item rustfmt really wants to update the closure to not use braces.
If you formatted the matches! call by hand like this rustfmt should leave it alone:
Here's some example code:
It's not the best code, that line is too long. So let's format it. Now we have:
Now the line is even longer! It's way past the 100 character limit.
I guess rustfmt is reluctant to introduce linebreaks inside a macro, but then it should just avoid touching this code -- but instead it makes things worse by putting the entire closure on a single line.
The text was updated successfully, but these errors were encountered: