In the following, if I apply the "invert if" action, I get:
fn main() {
if true || false {
println!("1");
} else {
println!("2");
}
}
===>
fn main() {
if !true || false {
println!("2");
} else {
println!("1");
}
}
which is lacking the required parens.
PS: sorry for the issue spamming, I've just started using rust-analyzer so I'm playing with it a bit x)