Skip to content

[Feature request] Chained closure formatting #5685

@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

    Labels

    A-closuresArea: closuresC-feature-requestCategory: a feature request (not decided/implemented)P-lowLow priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions