mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +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) => {
|
Ok(session) => {
|
||||||
let alias = session.alias().take().expect("Alias should exist").clone();
|
let alias = session.alias().take().expect("Alias should exist").clone();
|
||||||
let token = session.disarm();
|
let token = session.disarm();
|
||||||
let result = UploadResult::Success { alias, token };
|
UploadResult::Success { alias, token }
|
||||||
result
|
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::warn!("Failed to ingest\n{}\n{}", format!("{e}"), format!("{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> {
|
fn hash_alias_key(hash: &IVec, alias: &IVec) -> Vec<u8> {
|
||||||
let mut v = hash.to_vec();
|
let mut v = hash.to_vec();
|
||||||
v.extend_from_slice(&alias);
|
v.extend_from_slice(alias);
|
||||||
v
|
v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue