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
Note that rustfmt probably did this to reduce the line-width, however, given that _ = is so short and we are using 4 whitespaces for indentation, this change did not actually reduce the line's width and just introduced an unnecessary new-line which also made to code less readable in my opinion.
Version:
rustfmt 1.8.0-nightly (75530e9f72 2025-03-18)
In my Wasmi project I have got the following Rust line of code:
And
rustfmt
decided to re-format this the assignment line to this:Note that
rustfmt
probably did this to reduce the line-width, however, given that_ =
is so short and we are using 4 whitespaces for indentation, this change did not actually reduce the line's width and just introduced an unnecessary new-line which also made to code less readable in my opinion.PR where I first saw this: wasmi-labs/wasmi#1398
The text was updated successfully, but these errors were encountered: