mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
28 lines
849 B
Text
28 lines
849 B
Text
error: matching over `()` is more explicit
|
|
--> $DIR/ignored_unit_patterns.rs:10:12
|
|
|
|
|
LL | Ok(_) => {},
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
|
|
|
|
error: matching over `()` is more explicit
|
|
--> $DIR/ignored_unit_patterns.rs:11:13
|
|
|
|
|
LL | Err(_) => {},
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
error: matching over `()` is more explicit
|
|
--> $DIR/ignored_unit_patterns.rs:13:15
|
|
|
|
|
LL | if let Ok(_) = foo() {}
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
error: matching over `()` is more explicit
|
|
--> $DIR/ignored_unit_patterns.rs:14:28
|
|
|
|
|
LL | let _ = foo().map_err(|_| todo!());
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|