1 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
2 --> $DIR/single_match_else.rs:14:5
4 LL | / match ExprNode::Butterflies {
5 LL | | ExprNode::ExprAddrOf => Some(&NODE),
13 = note: `-D clippy::single-match-else` implied by `-D warnings`
16 LL | if let ExprNode::ExprAddrOf = ExprNode::Butterflies { Some(&NODE) } else {
22 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
23 --> $DIR/single_match_else.rs:70:5
25 LL | / match Some(1) {
26 LL | | Some(a) => println!("${:?}", a),
28 LL | | println!("else block");
36 LL | if let Some(a) = Some(1) { println!("${:?}", a) } else {
37 LL | println!("else block");
42 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
43 --> $DIR/single_match_else.rs:79:5
45 LL | / match Some(1) {
46 LL | | Some(a) => println!("${:?}", a),
48 LL | | println!("else block");
56 LL | if let Some(a) = Some(1) { println!("${:?}", a) } else {
57 LL | println!("else block");
62 error: aborting due to 3 previous errors