Skip to content

rustfmt doesn't format this code #4072

Closed
@TeXitoi

Description

@TeXitoi

Here a case where rustfmt doesn't do anything. I tried to simplify to the maximum the use case. If you remove (almost) any character, rustfmt does its job.

fn main() {
    n()
            .ser(a
            .app(
                default().limieeeeeeeeeeeeeeeeet().error_handler(|err, req| {
                    error!("Invalid model    req                      ", "error" => err.to_string());
                }
            )
        )
    )
}

Tested with the latest nightly: rustfmt 1.4.12-nightly (9f53665 2020-02-10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions