Skip to content

Long statements continues on its own line #3626

Open
@tesuji

Description

@tesuji

Playground

I tried to format this code:

fn main() {
    let visual_studio_path = {
        let vswhere_stdout = String::from_utf8(vswhere_output.stdout)
    .expect("vswhere output is not valid UTF-8");
        String::from(vswhere_stdout.trim())
    };
}

What I expect:

fn main() {
    let visual_studio_path = {
        let vswhere_stdout = String::from_utf8(vswhere_output.stdout)
            .expect("vswhere output is not valid UTF-8");
        String::from(vswhere_stdout.trim())
    };
}

What I got:

fn main() {
    let visual_studio_path = {
        let vswhere_stdout =
            String::from_utf8(vswhere_output.stdout).expect("vswhere output is not valid UTF-8");
        String::from(vswhere_stdout.trim())
    };
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions