rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Multi-line Fn supertraits are indented improperly

Open swooster opened this issue 1 year ago • 2 comments

Multi-line supertraits appear to be insufficiently indented:

trait Foo:
    Fn(
    ReallyLongTypeName,
    ReallyLongTypeName,
    ReallyLongTypeName,
    ReallyLongTypeName,
) -> ReallyLongTypeName
{
}

I'd prefer the later lines to be indented an extra level:

trait Foo:
    Fn(
        ReallyLongTypeName,
        ReallyLongTypeName,
        ReallyLongTypeName,
        ReallyLongTypeName,
    ) -> ReallyLongTypeName
{
}

(playground example)

Thank you!

swooster avatar Mar 27 '24 23:03 swooster

@swooster thanks for the report! You're right the indentation seems off here

ytmimi avatar Mar 28 '24 00:03 ytmimi

Hi! Can i give it a try ?

Flowrey avatar Mar 29 '24 13:03 Flowrey