From 503798481a37da0cfbbc07fff7ede671a1bcb4ba Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Tue, 14 May 2024 17:14:18 +1200 Subject: [PATCH] clippy --- src/extensions/client/endpoint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/client/endpoint.rs b/src/extensions/client/endpoint.rs index 6107220..f675253 100644 --- a/src/extensions/client/endpoint.rs +++ b/src/extensions/client/endpoint.rs @@ -218,7 +218,7 @@ impl Endpoint { health.on_error(err); } - if let Err(_) = response.send(resp) { + if response.send(resp).is_err() { tracing::error!("Unable to send response to message channel"); } }); @@ -258,7 +258,7 @@ impl Endpoint { health.on_error(err); } - if let Err(_) = response.send(resp) { + if response.send(resp).is_err() { tracing::error!("Unable to send response to message channel"); } });