Skip to content

Rustfmt doesn't fix indentation when using the let_chains feature #5642

Closed
@FinnRG

Description

@FinnRG

Playground

Minimal example:

#![feature(let_chains)]

fn main() {
    let t = Some(32);
    if true && let Some(t) = t {
            println!("Hello, World!"); // This should be changed to 4 spaces
    }
}

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