@@ -12,8 +12,8 @@ LL | | }
1212help: try
1313 |
1414LL | if x == "hello" && y == "world" {
15- LL | println!("Hello world!");
16- LL | }
15+ LL | println!("Hello world!");
16+ LL | }
1717 |
1818
1919error: this `if` statement can be collapsed
@@ -29,8 +29,8 @@ LL | | }
2929help: try
3030 |
3131LL | if (x == "hello" || x == "world") && (y == "world" || y == "hello") {
32- LL | println!("Hello world!");
33- LL | }
32+ LL | println!("Hello world!");
33+ LL | }
3434 |
3535
3636error: this `if` statement can be collapsed
@@ -46,8 +46,8 @@ LL | | }
4646help: try
4747 |
4848LL | if x == "hello" && x == "world" && (y == "world" || y == "hello") {
49- LL | println!("Hello world!");
50- LL | }
49+ LL | println!("Hello world!");
50+ LL | }
5151 |
5252
5353error: this `if` statement can be collapsed
@@ -63,8 +63,8 @@ LL | | }
6363help: try
6464 |
6565LL | if (x == "hello" || x == "world") && y == "world" && y == "hello" {
66- LL | println!("Hello world!");
67- LL | }
66+ LL | println!("Hello world!");
67+ LL | }
6868 |
6969
7070error: this `if` statement can be collapsed
@@ -80,8 +80,8 @@ LL | | }
8080help: try
8181 |
8282LL | if x == "hello" && x == "world" && y == "world" && y == "hello" {
83- LL | println!("Hello world!");
84- LL | }
83+ LL | println!("Hello world!");
84+ LL | }
8585 |
8686
8787error: this `if` statement can be collapsed
@@ -97,8 +97,8 @@ LL | | }
9797help: try
9898 |
9999LL | if 42 == 1337 && 'a' != 'A' {
100- LL | println!("world!")
101- LL | }
100+ LL | println!("world!")
101+ LL | }
102102 |
103103
104104error: this `if` statement can be collapsed
@@ -114,8 +114,8 @@ LL | | }
114114help: try
115115 |
116116LL | if x == "hello" && y == "world" { // Collapsible
117- LL | println!("Hello world!");
118- LL | }
117+ LL | println!("Hello world!");
118+ LL | }
119119 |
120120
121121error: aborting due to 7 previous errors
0 commit comments