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()`.
151
-
--> $DIR/methods.rs:269:13
151
+
--> $DIR/methods.rs:268:13
152
152
|
153
153
LL | let _ = v.iter().find(|&x| {
154
154
| _____________^
@@ -158,15 +158,15 @@ LL | | ).is_some();
158
158
| |______________________________^
159
159
160
160
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
161
-
--> $DIR/methods.rs:275:13
161
+
--> $DIR/methods.rs:274:13
162
162
|
163
163
LL | let _ = v.iter().position(|&x| x < 0).is_some();
164
164
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165
165
|
166
166
= note: replace `position(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
167
167
168
168
error: called `is_some()` after searching an `Iterator` with position. 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().position(|&x| {
172
172
| _____________^
@@ -176,15 +176,15 @@ LL | | ).is_some();
176
176
| |______________________________^
177
177
178
178
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
179
-
--> $DIR/methods.rs:284:13
179
+
--> $DIR/methods.rs:283:13
180
180
|
181
181
LL | let _ = v.iter().rposition(|&x| x < 0).is_some();
182
182
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
183
183
|
184
184
= note: replace `rposition(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
185
185
186
186
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
187
-
--> $DIR/methods.rs:287:13
187
+
--> $DIR/methods.rs:286:13
188
188
|
189
189
LL | let _ = v.iter().rposition(|&x| {
190
190
| _____________^
@@ -194,7 +194,7 @@ LL | | ).is_some();
194
194
| |______________________________^
195
195
196
196
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