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()`.
161
-
--> $DIR/methods.rs:236:13
161
+
--> $DIR/methods.rs:251:13
162
162
|
163
163
LL | let _ = v.iter().find(|&x| {
164
164
| _____________^
@@ -168,15 +168,15 @@ LL | | ).is_some();
168
168
| |______________________________^
169
169
170
170
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
171
-
--> $DIR/methods.rs:242:13
171
+
--> $DIR/methods.rs:257:13
172
172
|
173
173
LL | let _ = v.iter().position(|&x| x < 0).is_some();
174
174
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
175
|
176
176
= note: replace `position(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
177
177
178
178
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
179
-
--> $DIR/methods.rs:245:13
179
+
--> $DIR/methods.rs:260:13
180
180
|
181
181
LL | let _ = v.iter().position(|&x| {
182
182
| _____________^
@@ -186,15 +186,15 @@ LL | | ).is_some();
186
186
| |______________________________^
187
187
188
188
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
189
-
--> $DIR/methods.rs:251:13
189
+
--> $DIR/methods.rs:266:13
190
190
|
191
191
LL | let _ = v.iter().rposition(|&x| x < 0).is_some();
192
192
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193
193
|
194
194
= note: replace `rposition(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
195
195
196
196
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
197
-
--> $DIR/methods.rs:254:13
197
+
--> $DIR/methods.rs:269:13
198
198
|
199
199
LL | let _ = v.iter().rposition(|&x| {
200
200
| _____________^
@@ -204,7 +204,7 @@ LL | | ).is_some();
204
204
| |______________________________^
205
205
206
206
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