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
When formatted with the default formatter, this works properly and fixes the overly long lines in the macro.
However when then switching to the following rustfmt.toml:
use_small_heuristics = "Max"max_width = 100# Optional, just for clarity
Suddenly the macro match arms are all reformatted to a single line, even though use_small_heuristics = "Max" is supposed to max out at max_width and not just allow infinitely long lines.
I've had this break one of my macros during the 2024 edition migration, so I believe there might be a regression somewhere?
The text was updated successfully, but these errors were encountered:
Take the following Rust code:
When formatted with the default formatter, this works properly and fixes the overly long lines in the macro.
However when then switching to the following
rustfmt.toml
:Suddenly the macro match arms are all reformatted to a single line, even though
use_small_heuristics = "Max"
is supposed to max out atmax_width
and not just allow infinitely long lines.I've had this break one of my macros during the 2024 edition migration, so I believe there might be a regression somewhere?
The text was updated successfully, but these errors were encountered: