From 4bdf5e6e2a315133d7d3c0bf80617c1ef4968331 Mon Sep 17 00:00:00 2001 From: rucciva Date: Tue, 15 Oct 2024 22:56:04 +0700 Subject: [PATCH] fix lint --- src/transport/http2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transport/http2.rs b/src/transport/http2.rs index 2d0ca16..0273143 100755 --- a/src/transport/http2.rs +++ b/src/transport/http2.rs @@ -149,15 +149,15 @@ impl Service> for Svc { fn call(&self, req: Request) -> Self::Future { let req_sender = self.req_sender.clone(); - let addr = self.addr.clone(); + let addr = self.addr; let future = async move { let (res_sender, mut res_receiver) = mpsc::channel::(1); - if let Err(_) = req_sender + if let Err(err) = req_sender .send(Ok((addr, req.into_body(), res_sender))) .await { - return Err(anyhow!("Channel closed")); + return Err(anyhow!(err.to_string())); } match res_receiver.recv().await {