Skip to content

No formatting for match arms containing /*...*/ comments #1087

Closed
@aleksander

Description

@aleksander

rustfmt 0.5.0

this code:

fn test(value: u8) {
    match value {
    0 => {
            fn1();
        }
            _ /*comment*/ => {
            fn2();
        }
    }
}

should be formatted as follows:

fn test(value: u8) {
    match value {
        0 => {
            fn1();
        }
        _ /*comment*/ => {
            fn2();
        }
    }
}

but it's not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions