Skip to content

Format let_else/let else #5587

Closed as not planned
Closed as not planned
@cynecx

Description

@cynecx

It seems like rustfmt doesn't support formatting let_else/"let else" constructs right now.

fn main() {
    let Some(okay) = Some(1) else {
                            let t =             1;
                    return;
    };
}

I also couldn't find an existing issue around let_else (searched for "let else" and "let_else"), so let me know if this is an existing issue that I wasn't able to find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions