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
I formatted my code as a single line after facing some issues with the formatter. I thought that it might help me see where exactly the problem is. However, when running rustfmt, the only changes it makes are around the function declaration and {}. The internals of the function are left entirely untouched.
Expected behavior:rustfmt should format the function, introducing appropriate indentation and line breaks for readability.
The version currently used in Rust Playground: 1.8.0-beta (2025-02-01 0277061b9a)
The last match arm is the issue. It's way too long, and rustfmt can't format the expression within the max width and as a result formatting the match expression fails.
rustfmt
does not apply any formatting to the contents of the following Rust function (which compiles and works as expected):I formatted my code as a single line after facing some issues with the formatter. I thought that it might help me see where exactly the problem is. However, when running
rustfmt
, the only changes it makes are around the function declaration and{}
. The internals of the function are left entirely untouched.Expected behavior:
rustfmt
should format the function, introducing appropriate indentation and line breaks for readability.The version currently used in Rust Playground: 1.8.0-beta (2025-02-01 0277061b9a)
Permalink to the playground with unedited one-liner.
Hope this helps.
The text was updated successfully, but these errors were encountered: