This grinds me gears. Especially when you have multiple similar lines and one is a character longer and the formatter breaks that line.
It’s like, I could scan the code easier and understand it better without you doing that, thank you!
A similar thing is match statements — some arms using braces vs statements.
There’s also a bunch of heuristics in rustfmt that are complex to the point that I literally couldn’t format the code the way it does without building some sort of decision tree annotated with uneven column limits (e.g. “70% of the column limit”). If I can’t and therefore wouldn’t format the code the way the formatter does, there’s an issue.
Formatters are for consistency, I think, and sometimes they work against that.
It’s like, I could scan the code easier and understand it better without you doing that, thank you!
A similar thing is match statements — some arms using braces vs statements.
There’s also a bunch of heuristics in rustfmt that are complex to the point that I literally couldn’t format the code the way it does without building some sort of decision tree annotated with uneven column limits (e.g. “70% of the column limit”). If I can’t and therefore wouldn’t format the code the way the formatter does, there’s an issue.
Formatters are for consistency, I think, and sometimes they work against that.