This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -220,10 +220,8 @@ mod issue_11910 {
220
220
}
221
221
222
222
struct Foo;
223
- impl Foo{
224
- fn bar(&self, _ : bool) {
225
-
226
- }
223
+ impl Foo {
224
+ fn bar(&self, _: bool) {}
227
225
}
228
226
229
227
fn test_then() {
Original file line number Diff line number Diff line change @@ -226,10 +226,8 @@ mod issue_11910 {
226
226
}
227
227
228
228
struct Foo ;
229
- impl Foo {
230
- fn bar ( & self , _ : bool ) {
231
-
232
- }
229
+ impl Foo {
230
+ fn bar ( & self , _: bool ) { }
233
231
}
234
232
235
233
fn test_then ( ) {
Original file line number Diff line number Diff line change @@ -283,19 +283,19 @@ LL | let _ = v.iter().find(|fp| test_u32_2(*fp.field)).is_none();
283
283
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|fp| test_u32_2(*fp.field))`
284
284
285
285
error: called `is_none()` after searching an `Iterator` with `find`
286
- --> $DIR/search_is_some_fixable_none.rs:237 :9
286
+ --> $DIR/search_is_some_fixable_none.rs:235 :9
287
287
|
288
288
LL | v.iter().find(|x| **x == 42).is_none().then(computations);
289
289
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `(!v.iter().any(|x| *x == 42))`
290
290
291
291
error: called `is_none()` after searching an `Iterator` with `find`
292
- --> $DIR/search_is_some_fixable_none.rs:242 :9
292
+ --> $DIR/search_is_some_fixable_none.rs:240 :9
293
293
|
294
294
LL | v.iter().find(|x| **x == 42).is_none().then_some(0);
295
295
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `(!v.iter().any(|x| *x == 42))`
296
296
297
297
error: called `is_none()` after searching an `Iterator` with `find`
298
- --> $DIR/search_is_some_fixable_none.rs:244 :17
298
+ --> $DIR/search_is_some_fixable_none.rs:242 :17
299
299
|
300
300
LL | Foo.bar(v.iter().find(|x| **x == 42).is_none());
301
301
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `!v.iter().any(|x| *x == 42)`
You can’t perform that action at this time.
0 commit comments