mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
clippy
This commit is contained in:
parent
c2c5ce9373
commit
3325b222a2
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue