From e81e3c4b4cbecd63ab37c6b2b250ee2c84e87c4e Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:22:06 +0200 Subject: [PATCH] Fix clippy lints --- src/root_span_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root_span_builder.rs b/src/root_span_builder.rs index 64b3a1d32..fba60f70f 100644 --- a/src/root_span_builder.rs +++ b/src/root_span_builder.rs @@ -65,8 +65,8 @@ fn handle_error(span: Span, status_code: StatusCode, response_error: &dyn Respon // pre-formatting errors is a workaround for https://github.com/tokio-rs/tracing/issues/1565 let display = format!("{response_error}"); let debug = format!("{response_error:?}"); - span.record("exception.message", &tracing::field::display(display)); - span.record("exception.details", &tracing::field::display(debug)); + span.record("exception.message", tracing::field::display(display)); + span.record("exception.details", tracing::field::display(debug)); let code: i32 = status_code.as_u16().into(); span.record("http.status_code", code);