Skip to content

Format let_else/let else #5587

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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