Skip to content

Not doing anything on a simple piece of code #4183

@sylvestre

Description

@sylvestre

rustfmt isn't doing anything on the following code:

pub fn uumain(args: Vec<String>) -> i32 {
    let matches = App::new(executable!())
        .arg(            Arg::with_name(OPT_CHANGE)
            .short("c").long("ch")
)
        .arg(
            Arg::with_name(OPT_DEREFERENCE).help("aazezae affect the referent of each symbolic link this is qthe default the symbolic link itself"));
}

which is obviously incorrect formatted
(I am experiencing the same issue on a file which compiles)

$ rustfmt --check a.rs ; echo $?
0

with rustfmt 1.4.12-stable (a828ffe 2020-03-11)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions