Formatting the following code produces awful results:
fn main() {
{
{
{
let result = this_is_a_quite_long_name(
another_long_one,
&|from, to| -> LongResult<Words> {
() // this comment is to keep it from collapsing
}
)?;
}
}
}
}
it's formatted into this:
fn main() {
{
{
{
let result = this_is_a_quite_long_name(another_long_one, &|from,
to|
-> LongResult<
Words,
> {
() // this comment is to keep it from collapsing
})?;
}
}
}
}
Formatting the following code produces awful results:
it's formatted into this:
playground: link
I can ignore it by using
#[rustfmt::skip]
but this behavior seems incorrect.