From af96790945155feb0feccdcf53f0446de32c297c Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 12 Nov 2024 13:57:01 -0600 Subject: [PATCH] Clippy nit: borrowed value passed to span.record --- src/repo/postgres.rs | 2 +- src/repo/sled.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo/postgres.rs b/src/repo/postgres.rs index 89e952c..3014558 100644 --- a/src/repo/postgres.rs +++ b/src/repo/postgres.rs @@ -1666,7 +1666,7 @@ impl QueueRepo for PostgresRepo { .map_err(PostgresError::Diesel)?; if let Some((job_id, job_json)) = opt { - tracing::Span::current().record("job_id", &format!("{job_id}")); + tracing::Span::current().record("job_id", format!("{job_id}")); guard.disarm(); tracing::debug!("{job_json}"); diff --git a/src/repo/sled.rs b/src/repo/sled.rs index 6f1a553..371c233 100644 --- a/src/repo/sled.rs +++ b/src/repo/sled.rs @@ -807,7 +807,7 @@ impl QueueRepo for SledRepo { .map_err(|_| RepoError::Canceled)??; if let Some((job_id, job_json)) = opt { - tracing::Span::current().record("job_id", &format!("{}", job_id.0)); + tracing::Span::current().record("job_id", format!("{}", job_id.0)); metrics_guard.disarm(); tracing::debug!("{job_json}");