mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 11:10:48 +01:00
fix: clippy
This commit is contained in:
@@ -137,10 +137,9 @@ impl Client {
|
|||||||
Ok(msg) => {
|
Ok(msg) => {
|
||||||
if let Err(e) = self.conn_sender_outgoing.send(msg).await {
|
if let Err(e) = self.conn_sender_outgoing.send(msg).await {
|
||||||
error!("Error while sending a message to connection thread: {}", e);
|
error!("Error while sending a message to connection thread: {}", e);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn send_capture(&mut self, capture_path: CapturePath) {
|
pub async fn send_capture(&mut self, capture_path: CapturePath) {
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ impl GameClient {
|
|||||||
menu_builder.label(ui, "Game ended!");
|
menu_builder.label(ui, "Game ended!");
|
||||||
|
|
||||||
if let Some(result) = &self.game_result {
|
if let Some(result) = &self.game_result {
|
||||||
menu_builder.label(ui, &result);
|
menu_builder.label(ui, result);
|
||||||
} else {
|
} else {
|
||||||
menu_builder.label(ui, "Could not get result");
|
menu_builder.label(ui, "Could not get result");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user