From 3325b222a26624f75e0de64ee4a1065b39e09f92 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 26 Nov 2022 11:17:53 -0600 Subject: [PATCH] clippy --- src/concurrent_processor.rs | 6 +++--- src/store/object_store.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 })