1 error: redundant pattern matching, consider using `is_ok()`
2 --> $DIR/redundant_pattern_matching.rs:19:12
4 19 | if let Ok(_) = Ok::<i32, i32>(42) {}
5 | -------^^^^^------------------------ help: try this: `if Ok::<i32, i32>(42).is_ok()`
7 = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
9 error: redundant pattern matching, consider using `is_err()`
10 --> $DIR/redundant_pattern_matching.rs:21:12
12 21 | if let Err(_) = Err::<i32, i32>(42) {
15 | |_____- help: try this: `if Err::<i32, i32>(42).is_err()`
17 error: redundant pattern matching, consider using `is_none()`
18 --> $DIR/redundant_pattern_matching.rs:24:12
20 24 | if let None = None::<()> {
23 | |_____- help: try this: `if None::<()>.is_none()`
25 error: redundant pattern matching, consider using `is_some()`
26 --> $DIR/redundant_pattern_matching.rs:27:12
28 27 | if let Some(_) = Some(42) {
31 | |_____- help: try this: `if Some(42).is_some()`
33 error: redundant pattern matching, consider using `is_ok()`
34 --> $DIR/redundant_pattern_matching.rs:46:5
36 46 | / match Ok::<i32, i32>(42) {
38 48 | | Err(_) => false,
40 | |_____^ help: try this: `Ok::<i32, i32>(42).is_ok()`
42 error: redundant pattern matching, consider using `is_err()`
43 --> $DIR/redundant_pattern_matching.rs:51:5
45 51 | / match Ok::<i32, i32>(42) {
46 52 | | Ok(_) => false,
47 53 | | Err(_) => true,
49 | |_____^ help: try this: `Ok::<i32, i32>(42).is_err()`
51 error: redundant pattern matching, consider using `is_err()`
52 --> $DIR/redundant_pattern_matching.rs:56:5
54 56 | / match Err::<i32, i32>(42) {
55 57 | | Ok(_) => false,
56 58 | | Err(_) => true,
58 | |_____^ help: try this: `Err::<i32, i32>(42).is_err()`
60 error: redundant pattern matching, consider using `is_ok()`
61 --> $DIR/redundant_pattern_matching.rs:61:5
63 61 | / match Err::<i32, i32>(42) {
65 63 | | Err(_) => false,
67 | |_____^ help: try this: `Err::<i32, i32>(42).is_ok()`
69 error: redundant pattern matching, consider using `is_some()`
70 --> $DIR/redundant_pattern_matching.rs:66:5
72 66 | / match Some(42) {
73 67 | | Some(_) => true,
76 | |_____^ help: try this: `Some(42).is_some()`
78 error: redundant pattern matching, consider using `is_none()`
79 --> $DIR/redundant_pattern_matching.rs:71:5
81 71 | / match None::<()> {
82 72 | | Some(_) => false,
85 | |_____^ help: try this: `None::<()>.is_none()`
87 error: aborting due to 10 previous errors