Fix some clippy issues
This commit is contained in:
parent
ab7090f2c5
commit
6f2deb38e1
4 changed files with 9 additions and 16 deletions
emgauwa-controller/src/ws
|
@ -104,8 +104,8 @@ async fn handle_message(
|
|||
return;
|
||||
}
|
||||
};
|
||||
match msg {
|
||||
Message::Text(text) => match serde_json::from_str(&text) {
|
||||
if let Message::Text(text) = msg {
|
||||
match serde_json::from_str(&text) {
|
||||
Ok(action) => {
|
||||
log::debug!("Received action: {:?}", action);
|
||||
let mut pool_conn = match pool.acquire().await {
|
||||
|
@ -123,8 +123,7 @@ async fn handle_message(
|
|||
Err(e) => {
|
||||
log::error!("Error deserializing action: {:?}", e);
|
||||
}
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue