From 65f8194a1fde94bcb2ec8e28334b91e27369b7a4 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 19 Oct 2022 15:35:42 +0100 Subject: [PATCH] Fix code linting warnings --- src/net/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/rpc.rs b/src/net/rpc.rs index 08b4bc67..195009e1 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -75,7 +75,7 @@ impl Rpc { // Create the ping message let msg = Message::ping(vec![]); // Send the message to the client - if let Err(_) = png.send(msg).await { + if png.send(msg).await.is_err() { // Exit out of the loop break; }