Address clippy lints

This commit is contained in:
Tim Kuehn
2023-11-15 23:59:48 -08:00
parent e9ba350496
commit f4db8cc5b4
2 changed files with 1 additions and 5 deletions

View File

@@ -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,

View File

@@ -717,10 +717,7 @@ impl<Req, Res> InFlightRequest<Req, Res> {
},
} = 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");