rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Support matches! with if guard

Open cynecx opened this issue 3 years ago • 0 comments

rustfmt struggles with matches! and if guards.

fn test() {
    let a = matches!(something.very_very_very.long.even.more.fields, Some(very_long_field_name_name_to_check) if method(very_long_field_name));
}

rustfmt 1.5.1-nightly (c0941dfb 2022-08-21)

cynecx avatar Sep 21 '22 14:09 cynecx