Skip to content

Comment after let exceeds max width #2198

@topecongiro

Description

@topecongiro

Input

fn foo() {
    let file_name =
        format!("{}", self.testpaths.file.display())
        .replace(r"\", "/"); // on windows, translate all '\' path separators to '/'
}

Output

fn foo() {
    let file_name = format!("{}", self.testpaths.file.display()).replace(r"\", "/"); // on windows, translate all '\' path separators to '/'
}

Meta

0.2.16-nightly (4e04e82 2017-11-28)

The above example is taken from https://github.com/rust-lang/rust/blob/8937d6a6cfb011d9e1fe6b4a426913dbbf9fd584/src/tools/compiletest/src/runtest.rs#L1007-L1009.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions