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:19:13
4 LL | let _ = match ExprNode::Butterflies {
6 LL | | ExprNode::ExprAddrOf => Some(&NODE),
14 = note: `-D clippy::single-match-else` implied by `-D warnings`
17 LL ~ let _ = if let ExprNode::ExprAddrOf = ExprNode::Butterflies { Some(&NODE) } else {
23 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
24 --> $DIR/single_match_else.rs:84:5
26 LL | / match Some(1) {
27 LL | | Some(a) => println!("${:?}", a),
29 LL | | println!("else block");
37 LL ~ if let Some(a) = Some(1) { println!("${:?}", a) } else {
38 LL + println!("else block");
43 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
44 --> $DIR/single_match_else.rs:93:5
46 LL | / match Some(1) {
47 LL | | Some(a) => println!("${:?}", a),
49 LL | | println!("else block");
57 LL ~ if let Some(a) = Some(1) { println!("${:?}", a) } else {
58 LL + println!("else block");
63 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
64 --> $DIR/single_match_else.rs:103:5
66 LL | / match Result::<i32, Infallible>::Ok(1) {
67 LL | | Ok(a) => println!("${:?}", a),
69 LL | | println!("else block");
77 LL ~ if let Ok(a) = Result::<i32, Infallible>::Ok(1) { println!("${:?}", a) } else {
78 LL + println!("else block");
83 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
84 --> $DIR/single_match_else.rs:112:5
86 LL | / match Cow::from("moo") {
87 LL | | Cow::Owned(a) => println!("${:?}", a),
88 LL | | Cow::Borrowed(_) => {
89 LL | | println!("else block");
97 LL ~ if let Cow::Owned(a) = Cow::from("moo") { println!("${:?}", a) } else {
98 LL + println!("else block");
103 error: aborting due to 5 previous errors