11error: redundant pattern matching, consider using `is_ok()`
2- --> $DIR/if_let_redundant_pattern_matching .rs:19:12
2+ --> $DIR/redundant_pattern_matching .rs:19:12
33 |
4419 | if let Ok(_) = Ok::<i32, i32>(42) {}
55 | -------^^^^^------------------------ help: try this: `if Ok::<i32, i32>(42).is_ok()`
66 |
7- = note: `-D clippy::if-let- redundant-pattern-matching` implied by `-D warnings`
7+ = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
88
99error: redundant pattern matching, consider using `is_err()`
10- --> $DIR/if_let_redundant_pattern_matching .rs:21:12
10+ --> $DIR/redundant_pattern_matching .rs:21:12
1111 |
121221 | if let Err(_) = Err::<i32, i32>(42) {
1313 | _____- ^^^^^^
141422 | | }
1515 | |_____- help: try this: `if Err::<i32, i32>(42).is_err()`
1616
1717error: redundant pattern matching, consider using `is_none()`
18- --> $DIR/if_let_redundant_pattern_matching .rs:24:12
18+ --> $DIR/redundant_pattern_matching .rs:24:12
1919 |
202024 | if let None = None::<()> {
2121 | _____- ^^^^
222225 | | }
2323 | |_____- help: try this: `if None::<()>.is_none()`
2424
2525error: redundant pattern matching, consider using `is_some()`
26- --> $DIR/if_let_redundant_pattern_matching .rs:27:12
26+ --> $DIR/redundant_pattern_matching .rs:27:12
2727 |
282827 | if let Some(_) = Some(42) {
2929 | _____- ^^^^^^^
303028 | | }
3131 | |_____- help: try this: `if Some(42).is_some()`
3232
3333error: redundant pattern matching, consider using `is_ok()`
34- --> $DIR/if_let_redundant_pattern_matching .rs:46:5
34+ --> $DIR/redundant_pattern_matching .rs:46:5
3535 |
363646 | / match Ok::<i32, i32>(42) {
373747 | | Ok(_) => true,
@@ -40,7 +40,7 @@ error: redundant pattern matching, consider using `is_ok()`
4040 | |_____^ help: try this: `Ok::<i32, i32>(42).is_ok()`
4141
4242error: redundant pattern matching, consider using `is_err()`
43- --> $DIR/if_let_redundant_pattern_matching .rs:51:5
43+ --> $DIR/redundant_pattern_matching .rs:51:5
4444 |
454551 | / match Ok::<i32, i32>(42) {
464652 | | Ok(_) => false,
@@ -49,7 +49,7 @@ error: redundant pattern matching, consider using `is_err()`
4949 | |_____^ help: try this: `Ok::<i32, i32>(42).is_err()`
5050
5151error: redundant pattern matching, consider using `is_err()`
52- --> $DIR/if_let_redundant_pattern_matching .rs:56:5
52+ --> $DIR/redundant_pattern_matching .rs:56:5
5353 |
545456 | / match Err::<i32, i32>(42) {
555557 | | Ok(_) => false,
@@ -58,7 +58,7 @@ error: redundant pattern matching, consider using `is_err()`
5858 | |_____^ help: try this: `Err::<i32, i32>(42).is_err()`
5959
6060error: redundant pattern matching, consider using `is_ok()`
61- --> $DIR/if_let_redundant_pattern_matching .rs:61:5
61+ --> $DIR/redundant_pattern_matching .rs:61:5
6262 |
636361 | / match Err::<i32, i32>(42) {
646462 | | Ok(_) => true,
@@ -67,7 +67,7 @@ error: redundant pattern matching, consider using `is_ok()`
6767 | |_____^ help: try this: `Err::<i32, i32>(42).is_ok()`
6868
6969error: redundant pattern matching, consider using `is_some()`
70- --> $DIR/if_let_redundant_pattern_matching .rs:66:5
70+ --> $DIR/redundant_pattern_matching .rs:66:5
7171 |
727266 | / match Some(42) {
737367 | | Some(_) => true,
@@ -76,7 +76,7 @@ error: redundant pattern matching, consider using `is_some()`
7676 | |_____^ help: try this: `Some(42).is_some()`
7777
7878error: redundant pattern matching, consider using `is_none()`
79- --> $DIR/if_let_redundant_pattern_matching .rs:71:5
79+ --> $DIR/redundant_pattern_matching .rs:71:5
8080 |
818171 | / match None::<()> {
828272 | | Some(_) => false,
0 commit comments