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
tl;dr - duplicate of (primary) item #4351 with more detail in the first half of from #4351 (comment). You can set version=Two to get the desired behavior if you're able to work on nightly, otherwise it's something that just has to be accepted due to the stability guarantees
TLDR:
To reproduce:
Create a new cargo project with default rustfmt settings, paste in this function, and format document.
Expected:
Actual:
Misc:
Adding explicit
return
triggers single line mode, which shows it's not related tosingle_line_if_else_max_width
:Versions:
rustfmt 1.5.1-stable (897e375 2022-11-02) on Linux 6.0.6 x86_64
The text was updated successfully, but these errors were encountered: