c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
488 B
Plaintext
12 lines
488 B
Plaintext
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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|