2023-08-11 07:05:13 -05:00
|
|
|
error: matching over `()` is more explicit
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:10:12
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | Ok(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:11:13
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | Err(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:13:15
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = foo() {}
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:14:28
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | let _ = foo().map_err(|_| todo!());
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|