mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Clippy nit: borrowed value passed to span.record
This commit is contained in:
parent
cb09720d85
commit
af96790945
2 changed files with 2 additions and 2 deletions
|
@ -1666,7 +1666,7 @@ impl QueueRepo for PostgresRepo {
|
||||||
.map_err(PostgresError::Diesel)?;
|
.map_err(PostgresError::Diesel)?;
|
||||||
|
|
||||||
if let Some((job_id, job_json)) = opt {
|
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();
|
guard.disarm();
|
||||||
tracing::debug!("{job_json}");
|
tracing::debug!("{job_json}");
|
||||||
|
|
|
@ -807,7 +807,7 @@ impl QueueRepo for SledRepo {
|
||||||
.map_err(|_| RepoError::Canceled)??;
|
.map_err(|_| RepoError::Canceled)??;
|
||||||
|
|
||||||
if let Some((job_id, job_json)) = opt {
|
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();
|
metrics_guard.disarm();
|
||||||
tracing::debug!("{job_json}");
|
tracing::debug!("{job_json}");
|
||||||
|
|
Loading…
Reference in a new issue