Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSim committed Mar 2, 2023
1 parent ed18c65 commit d83e640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/handlers/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn fetch(
format!("bytes {}-{}/{}", range_start, range_end, length),
));

return Ok(client_resp.no_chunking(r.length as u64).streaming(pe));
return Ok(client_resp.no_chunking(r.length).streaming(pe));
}
_ => {
return Ok(client_resp.no_chunking(length as u64).streaming(decoder));
Expand Down
2 changes: 1 addition & 1 deletion src/keyring_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn encrypt_and_save_keyring(
fn base64_cipher(master_key: &secretbox::Key, key: [u8; 32]) -> String {
let (cipher, nonce) = encrypt(master_key, key);
let nonce_cipher = concat(nonce, cipher);
base64::encode(&nonce_cipher)
base64::encode(nonce_cipher)
}

fn encrypt(master_key: &secretbox::Key, byte_key: [u8; 32]) -> (Vec<u8>, [u8; 24]) {
Expand Down

0 comments on commit d83e640

Please sign in to comment.