feat(network): start network impl and rpc handling #19
Annotations
1 error
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
crates/network/src/rpc/handler/handler.rs#L150
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> crates/network/src/rpc/handler/handler.rs:150:13
|
150 | / match result {
151 | | Ok(((request_id, request), response_sender)) => {
152 | | return Poll::Ready(ConnectionHandlerEvent::NotifyBehaviour(
153 | | Event::InboundRequest(request_id, request, response_sender),
... |
158 | | }
159 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `-D clippy::single-match` implied by `-D warnings`
help: try this
|
150 ~ if let Ok(((request_id, request), response_sender)) = result {
151 + return Poll::Ready(ConnectionHandlerEvent::NotifyBehaviour(
152 + Event::InboundRequest(request_id, request, response_sender),
153 + ))
154 + }
|
|