= note: `-D clippy::collapsible-if` implied by `-D warnings`
help: collapse nested if block
|
-LL | if x == "hello" && y == "world" {
-LL | println!("Hello world!");
-LL | }
+LL ~ if x == "hello" && y == "world" {
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if (x == "hello" || x == "world") && (y == "world" || y == "hello") {
-LL | println!("Hello world!");
-LL | }
+LL ~ if (x == "hello" || x == "world") && (y == "world" || y == "hello") {
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if x == "hello" && x == "world" && (y == "world" || y == "hello") {
-LL | println!("Hello world!");
-LL | }
+LL ~ if x == "hello" && x == "world" && (y == "world" || y == "hello") {
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if (x == "hello" || x == "world") && y == "world" && y == "hello" {
-LL | println!("Hello world!");
-LL | }
+LL ~ if (x == "hello" || x == "world") && y == "world" && y == "hello" {
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if x == "hello" && x == "world" && y == "world" && y == "hello" {
-LL | println!("Hello world!");
-LL | }
+LL ~ if x == "hello" && x == "world" && y == "world" && y == "hello" {
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if 42 == 1337 && 'a' != 'A' {
-LL | println!("world!")
-LL | }
+LL ~ if 42 == 1337 && 'a' != 'A' {
+LL + println!("world!")
+LL + }
|
error: this `if` statement can be collapsed
|
help: collapse nested if block
|
-LL | if x == "hello" && y == "world" { // Collapsible
-LL | println!("Hello world!");
-LL | }
+LL ~ if x == "hello" && y == "world" { // Collapsible
+LL + println!("Hello world!");
+LL + }
|
error: this `if` statement can be collapsed