Open
Description
With the following code:
trait Foo {
fn fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(_: ())
-> u32;
}
The ->
is indented with 4 spaces after fn
with edition 2021, but with edition 2024, rustfmt will align ->
with fn
:
trait Foo {
fn fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(_: ())
-> u32;
}
Here is a playground link for this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9cb2cfab404be994870455658edba6e0.
Is this change intended?