From 5f12be0c6a501e027c5e5e595244b336a6d8c5e9 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 26 Jul 2023 22:53:41 -0500 Subject: [PATCH] Clippy --- src/queue/process.rs | 3 +-- src/repo/sled.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/queue/process.rs b/src/queue/process.rs index 38ac21c..75392d4 100644 --- a/src/queue/process.rs +++ b/src/queue/process.rs @@ -112,8 +112,7 @@ where Ok(session) => { let alias = session.alias().take().expect("Alias should exist").clone(); let token = session.disarm(); - let result = UploadResult::Success { alias, token }; - result + UploadResult::Success { alias, token } } Err(e) => { tracing::warn!("Failed to ingest\n{}\n{}", format!("{e}"), format!("{e:?}")); diff --git a/src/repo/sled.rs b/src/repo/sled.rs index a472e2a..567fc4f 100644 --- a/src/repo/sled.rs +++ b/src/repo/sled.rs @@ -1184,7 +1184,7 @@ impl HashRepo for SledRepo { fn hash_alias_key(hash: &IVec, alias: &IVec) -> Vec { let mut v = hash.to_vec(); - v.extend_from_slice(&alias); + v.extend_from_slice(alias); v }