1 error: redundant pattern matching, consider using `is_ok()`
2 --> if_let_redundant_pattern_matching.rs:9:12
4 9 | if let Ok(_) = Ok::<i32, i32>(42) {}
5 | -------^^^^^--------------------- help: try this `if Ok::<i32, i32>(42).is_ok()`
7 = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
9 error: redundant pattern matching, consider using `is_err()`
10 --> if_let_redundant_pattern_matching.rs:11:12
12 11 | if let Err(_) = Err::<i32, i32>(42) {
13 | -------^^^^^^---------------------- help: try this `if Err::<i32, i32>(42).is_err()`
15 = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
17 error: redundant pattern matching, consider using `is_none()`
18 --> if_let_redundant_pattern_matching.rs:14:12
20 14 | if let None = None::<()> {
21 | -------^^^^------------- help: try this `if None::<()>.is_none()`
23 = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
25 error: redundant pattern matching, consider using `is_some()`
26 --> if_let_redundant_pattern_matching.rs:17:12
28 17 | if let Some(_) = Some(42) {
29 | -------^^^^^^^----------- help: try this `if Some(42).is_some()`
31 = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
33 error: aborting due to previous error(s)
36 To learn more, run the command again with --verbose.