11error: condition can be simplified with if..let syntax
2- --> tests/ui/unnecessary_indexing.rs:22 :5
2+ --> tests/ui/unnecessary_indexing.rs:23 :5
33 |
44LL | / if !a.is_empty() {
55LL | | let b = c(a[0]);
@@ -15,7 +15,7 @@ LL ~ let b = c(element);
1515 |
1616
1717error: condition can be simplified with if..let syntax
18- --> tests/ui/unnecessary_indexing.rs:28 :5
18+ --> tests/ui/unnecessary_indexing.rs:29 :5
1919 |
2020LL | / if !a.is_empty() {
2121LL | | let b = Struct::a(a[0]);
@@ -29,7 +29,7 @@ LL ~ let b = Struct::a(element);
2929 |
3030
3131error: condition can be simplified with if..let syntax
32- --> tests/ui/unnecessary_indexing.rs:34 :5
32+ --> tests/ui/unnecessary_indexing.rs:35 :5
3333 |
3434LL | / if !a.is_empty() {
3535LL | | let b = c(a[0]);
@@ -43,7 +43,7 @@ LL ~ let b = c(element);
4343 |
4444
4545error: condition can be simplified with if..let syntax
46- --> tests/ui/unnecessary_indexing.rs:40 :5
46+ --> tests/ui/unnecessary_indexing.rs:41 :5
4747 |
4848LL | / if !a.is_empty() {
4949LL | | let b = Struct::a(a[0]);
@@ -57,7 +57,7 @@ LL ~ let b = Struct::a(element);
5757 |
5858
5959error: condition can be simplified with if..let syntax
60- --> tests/ui/unnecessary_indexing.rs:46 :5
60+ --> tests/ui/unnecessary_indexing.rs:47 :5
6161 |
6262LL | / if !a.is_empty() {
6363LL | | let b = a[0];
7575 |
7676
7777error: condition can be simplified with if..let syntax
78- --> tests/ui/unnecessary_indexing.rs:52 :5
78+ --> tests/ui/unnecessary_indexing.rs:53 :5
7979 |
8080LL | / if !a.is_empty() {
8181LL | | let b = a[0];
9393 |
9494
9595error: condition can be simplified with if..let syntax
96- --> tests/ui/unnecessary_indexing.rs:58 :5
96+ --> tests/ui/unnecessary_indexing.rs:59 :5
9797 |
9898LL | / if !a.is_empty() {
9999LL | | dbg!(a);
112112 |
113113
114114error: condition can be simplified with if..let syntax
115- --> tests/ui/unnecessary_indexing.rs:65 :5
115+ --> tests/ui/unnecessary_indexing.rs:66 :5
116116 |
117117LL | / if !a.is_empty() {
118118LL | | dbg!(a);
@@ -141,7 +141,7 @@ LL | drop(b);
141141 | ~
142142
143143error: condition can be simplified with if..let syntax
144- --> tests/ui/unnecessary_indexing.rs:74 :5
144+ --> tests/ui/unnecessary_indexing.rs:75 :5
145145 |
146146LL | / if !a.is_empty() {
147147LL | | dbg!(a);
0 commit comments