diff --git a/src/concurrent_processor.rs b/src/concurrent_processor.rs index c018b6c..aa5deff 100644 --- a/src/concurrent_processor.rs +++ b/src/concurrent_processor.rs @@ -51,7 +51,7 @@ where vacant.insert(Vec::new()); let span = tracing::info_span!( "Processing image", - hash = &tracing::field::debug(&hex::encode(&hash)), + hash = &tracing::field::debug(&hex::encode(hash)), path = &tracing::field::debug(&path), completed = &tracing::field::Empty, ); @@ -64,7 +64,7 @@ where occupied.get_mut().push(tx); let span = tracing::info_span!( "Waiting for processed image", - hash = &tracing::field::debug(&hex::encode(&hash)), + hash = &tracing::field::debug(&hex::encode(hash)), path = &tracing::field::debug(&path), ); (Some(rx), span) @@ -122,7 +122,7 @@ impl Drop for CancelToken { fn drop(&mut self) { if self.receiver.is_none() { let completed = PROCESS_MAP.remove(&self.key).is_none(); - self.span.record("completed", &completed); + self.span.record("completed", completed); } } } diff --git a/src/store/object_store.rs b/src/store/object_store.rs index e0d6257..620da5c 100644 --- a/src/store/object_store.rs +++ b/src/store/object_store.rs @@ -474,7 +474,7 @@ impl ObjectStore { hasher.update(&bytes); } let hash = hasher.finalize(); - let hash_string = base64::encode(&hash); + let hash_string = base64::encode(hash); drop(guard); hash_string })