Skip to content

opening brace should be on new line after broken impl line #2320

Closed
@tspiteri

Description

@tspiteri

Rustfmt currently produces this:

impl ImplementationXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    for TypeXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {
    fn foo() {}
}

I think it looks better, and more consistent with other code, like this:

impl ImplementationXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    for TypeXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
    fn foo() {}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions