Ignore clippy false positive

This commit is contained in:
Tim Kuehn
2022-11-13 00:25:07 -08:00
parent 94db7610bb
commit 7fa4e5064d

View File

@@ -732,6 +732,9 @@ 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(""));
let _ = Abortable::new(
async move {