Skip to content

[Feature request] Chained closure formatting #5685

Open
@wyfo

Description

@wyfo

Today, chained closure are formatted like this:

let closure = |a| {
    |b| {
        println!("{a}{b}");
    }
};

I personally find it less readable than:

let closure = |a| |b| {
    println!("{a}{b}");
};

Could it be an option for this formatting?

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