rust-lang/rustfmt

Catalog `style_edition=2027` formatting differences

Opened this issue · 1 comments

Tracking issue documenting style_edition=2027 changes.

Break function return types before -> instead of breaking between () for zero argument functions

Related PR: #6362

style_edition == 2027

pub fn parse_conditional<'a, I: 'a>()
-> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a
where
    I: Stream<Item = char>,
{
}

style_edition <= 2024

pub fn parse_conditional<'a, I: 'a>(
) -> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a
where
    I: Stream<Item = char>,
{
}