1
1
error: matching over `()` is more explicit
2
- --> $DIR/ignored_unit_patterns.rs:10 :12
2
+ --> $DIR/ignored_unit_patterns.rs:11 :12
3
3
|
4
4
LL | Ok(_) => {},
5
5
| ^ help: use `()` instead of `_`: `()`
@@ -8,28 +8,40 @@ LL | Ok(_) => {},
8
8
= help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`
9
9
10
10
error: matching over `()` is more explicit
11
- --> $DIR/ignored_unit_patterns.rs:11 :13
11
+ --> $DIR/ignored_unit_patterns.rs:12 :13
12
12
|
13
13
LL | Err(_) => {},
14
14
| ^ help: use `()` instead of `_`: `()`
15
15
16
16
error: matching over `()` is more explicit
17
- --> $DIR/ignored_unit_patterns.rs:13 :15
17
+ --> $DIR/ignored_unit_patterns.rs:14 :15
18
18
|
19
19
LL | if let Ok(_) = foo() {}
20
20
| ^ help: use `()` instead of `_`: `()`
21
21
22
22
error: matching over `()` is more explicit
23
- --> $DIR/ignored_unit_patterns.rs:15 :28
23
+ --> $DIR/ignored_unit_patterns.rs:16 :28
24
24
|
25
25
LL | let _ = foo().map_err(|_| todo!());
26
26
| ^ help: use `()` instead of `_`: `()`
27
27
28
28
error: matching over `()` is more explicit
29
- --> $DIR/ignored_unit_patterns.rs:21:9
29
+ --> $DIR/ignored_unit_patterns.rs:22:16
30
+ |
31
+ LL | Ok(_) => {},
32
+ | ^ help: use `()` instead of `_`: `()`
33
+
34
+ error: matching over `()` is more explicit
35
+ --> $DIR/ignored_unit_patterns.rs:24:17
36
+ |
37
+ LL | Err(_) => {},
38
+ | ^ help: use `()` instead of `_`: `()`
39
+
40
+ error: matching over `()` is more explicit
41
+ --> $DIR/ignored_unit_patterns.rs:36:9
30
42
|
31
43
LL | let _ = foo().unwrap();
32
44
| ^ help: use `()` instead of `_`: `()`
33
45
34
- error: aborting due to 5 previous errors
46
+ error: aborting due to 7 previous errors
35
47
0 commit comments