mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
10 lines
398 B
Text
10 lines
398 B
Text
error: redundant pattern matching, consider using `is_ok()`
|
|
--> $DIR/ice-7169.rs:10:12
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
|
|
| -------^^^^^-------------------------------------- help: try: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
|
|
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|