You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
141
-
--> $DIR/methods.rs:263:13
141
+
--> $DIR/methods.rs:262:13
142
142
|
143
143
LL | let _ = v.iter().find(|&x| {
144
144
| _____________^
@@ -148,15 +148,15 @@ LL | | ).is_some();
148
148
| |______________________________^
149
149
150
150
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
151
-
--> $DIR/methods.rs:269:13
151
+
--> $DIR/methods.rs:268:13
152
152
|
153
153
LL | let _ = v.iter().position(|&x| x < 0).is_some();
154
154
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155
155
|
156
156
= note: replace `position(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
157
157
158
158
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
159
-
--> $DIR/methods.rs:272:13
159
+
--> $DIR/methods.rs:271:13
160
160
|
161
161
LL | let _ = v.iter().position(|&x| {
162
162
| _____________^
@@ -166,15 +166,15 @@ LL | | ).is_some();
166
166
| |______________________________^
167
167
168
168
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
169
-
--> $DIR/methods.rs:278:13
169
+
--> $DIR/methods.rs:277:13
170
170
|
171
171
LL | let _ = v.iter().rposition(|&x| x < 0).is_some();
172
172
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173
173
|
174
174
= note: replace `rposition(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
175
175
176
176
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
177
-
--> $DIR/methods.rs:281:13
177
+
--> $DIR/methods.rs:280:13
178
178
|
179
179
LL | let _ = v.iter().rposition(|&x| {
180
180
| _____________^
@@ -184,7 +184,7 @@ LL | | ).is_some();
184
184
| |______________________________^
185
185
186
186
error: used unwrap() on an Option value. If you don't want to handle the None case gracefully, consider using expect() to provide a better panic message
0 commit comments