Skip to content

In functions with hanging indent, put the opening paren on the previous line #31

Closed
@nrc

Description

@nrc

E.g.,

fn foo <a, b, c> (
    a: A) {
}
// not
fn foo <a, b, c>
    (a: A) {
}

This is more apparent when both generics and arguments are on multiple lines. I'm not 100% sure which is better TBH, so we should probably keep an option for it. Interested on opinions on this too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues up for grabs, also good candidates for new rustfmt contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions