2023-08-11 12:05:13 +00:00
|
|
|
error: matching over `()` is more explicit
|
2023-10-06 15:35:45 +00:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:11:12
|
2023-08-11 12:05:13 +00:00
|
|
|
|
|
|
|
|
LL | Ok(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`
|
2023-08-11 12:05:13 +00:00
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-10-06 15:35:45 +00:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:12:13
|
2023-08-11 12:05:13 +00:00
|
|
|
|
|
|
|
|
LL | Err(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-10-06 15:35:45 +00:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:14:15
|
2023-08-11 12:05:13 +00:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = foo() {}
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2023-10-06 15:35:45 +00:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:16:28
|
2023-08-11 12:05:13 +00:00
|
|
|
|
|
|
|
|
LL | let _ = foo().map_err(|_| todo!());
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
2023-09-12 16:13:53 +00:00
|
|
|
error: matching over `()` is more explicit
|
2023-10-06 15:35:45 +00:00
|
|
|
--> $DIR/ignored_unit_patterns.rs:22:16
|
|
|
|
|
|
|
|
|
LL | Ok(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
|
|
|
--> $DIR/ignored_unit_patterns.rs:24:17
|
|
|
|
|
|
|
|
|
LL | Err(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
|
|
|
--> $DIR/ignored_unit_patterns.rs:36:9
|
2023-09-12 16:13:53 +00:00
|
|
|
|
|
|
|
|
LL | let _ = foo().unwrap();
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
2023-10-06 15:35:45 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2023-08-11 12:05:13 +00:00
|
|
|
|