rustfmt
rustfmt copied to clipboard
Add option to avoid line break after the `=` in `let` statements
// suppose this exceeds max line width...
let value = my_function(param1, param2, param3, param4, param5);
// option 1
let value =
my_function(param1, param2, param3, param4, param5);
// option 2
let value = my_function(
param1,
param2,
param3,
param4,
param5,
);
In my opinion, option 1 is very ugly. Would be great if a new config option is added that enforces option 2.
Seems related: https://github.com/rust-lang/rustfmt/issues/3514