$ cargo clippy -q -p zoen-zone -p zoen-protocol --all-targets -- -D warnings # cwd /Users/king/Desktop/Workspace/SRO/zoen # exit 101 error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> services/zone/tests/server.rs:176:9 | 176 | / match d.recv().unwrap() { 177 | | Received::Closed { code, .. } => break code, 178 | | _ => {} 179 | | } | |_________^ help: try: `if let Received::Closed { code, .. } = d.recv().unwrap() { break code }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#single_match = note: `-D clippy::single-match` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::single_match)]` error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> services/zone/tests/server.rs:187:9 | 187 | / match a.recv().unwrap() { 188 | | Received::Closed { code, .. } => break code, 189 | | _ => {} 190 | | } | |_________^ help: try: `if let Received::Closed { code, .. } = a.recv().unwrap() { break code }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#single_match error: could not compile `zoen-zone` (test "server") due to 2 previous errors