From f4db8cc5b46875c0db3b8531d4204363a56f5015 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Wed, 15 Nov 2023 23:59:48 -0800 Subject: [PATCH] Address clippy lints --- tarpc/src/client.rs | 1 - tarpc/src/server.rs | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tarpc/src/client.rs b/tarpc/src/client.rs index 109ee8f..0180ba4 100644 --- a/tarpc/src/client.rs +++ b/tarpc/src/client.rs @@ -500,7 +500,6 @@ where // poll_next_request only returns Ready if there is room to buffer another request. // Therefore, we can call write_request without fear of erroring due to a full // buffer. - let request_id = request_id; let request = ClientMessage::Request(Request { id: request_id, message: request, diff --git a/tarpc/src/server.rs b/tarpc/src/server.rs index a06e8f8..9f04b27 100644 --- a/tarpc/src/server.rs +++ b/tarpc/src/server.rs @@ -717,10 +717,7 @@ impl InFlightRequest { }, } = self; let method = serve.method(&message); - // TODO(https://github.com/rust-lang/rust-clippy/issues/9111) - // remove when clippy is fixed - #[allow(clippy::needless_borrow)] - span.record("otel.name", &method.unwrap_or("")); + span.record("otel.name", method.unwrap_or("")); let _ = Abortable::new( async move { tracing::info!("BeginRequest");