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:262:13
151
+
--> $DIR/methods.rs:269:13
142
152
|
143
153
LL | let _ = v.iter().find(|&x| {
144
154
| _____________^
@@ -148,15 +158,15 @@ LL | | ).is_some();
148
158
| |______________________________^
149
159
150
160
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
151
-
--> $DIR/methods.rs:268:13
161
+
--> $DIR/methods.rs:275:13
152
162
|
153
163
LL | let _ = v.iter().position(|&x| x < 0).is_some();
154
164
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155
165
|
156
166
= note: replace `position(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
157
167
158
168
error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
159
-
--> $DIR/methods.rs:271:13
169
+
--> $DIR/methods.rs:278:13
160
170
|
161
171
LL | let _ = v.iter().position(|&x| {
162
172
| _____________^
@@ -166,15 +176,15 @@ LL | | ).is_some();
166
176
| |______________________________^
167
177
168
178
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
169
-
--> $DIR/methods.rs:277:13
179
+
--> $DIR/methods.rs:284:13
170
180
|
171
181
LL | let _ = v.iter().rposition(|&x| x < 0).is_some();
172
182
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173
183
|
174
184
= note: replace `rposition(|&x| x < 0).is_some()` with `any(|&x| x < 0)`
175
185
176
186
error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
177
-
--> $DIR/methods.rs:280:13
187
+
--> $DIR/methods.rs:287:13
178
188
|
179
189
LL | let _ = v.iter().rposition(|&x| {
180
190
| _____________^
@@ -184,12 +194,12 @@ LL | | ).is_some();
184
194
| |______________________________^
185
195
186
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
187
-
--> $DIR/methods.rs:295:13
197
+
--> $DIR/methods.rs:302:13
188
198
|
189
199
LL | let _ = opt.unwrap();
190
200
| ^^^^^^^^^^^^
191
201
|
192
202
= note: `-D clippy::option-unwrap-used` implied by `-D warnings`
0 commit comments