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
83e9f537fe
commit
5f12be0c6a
2 changed files with 2 additions and 3 deletions
|
@ -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:?}"));
|
||||
|
|
|
@ -1184,7 +1184,7 @@ impl HashRepo for SledRepo {
|
|||
|
||||
fn hash_alias_key(hash: &IVec, alias: &IVec) -> Vec<u8> {
|
||||
let mut v = hash.to_vec();
|
||||
v.extend_from_slice(&alias);
|
||||
v.extend_from_slice(alias);
|
||||
v
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue