chore: Mend clippy warnings
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
parent
684ba7b646
commit
c1bdaa9ec2
4
bitwarden/Cargo.lock
generated
4
bitwarden/Cargo.lock
generated
|
@ -1,5 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
version = "0.14.0"
|
||||
|
@ -80,7 +82,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
|||
|
||||
[[package]]
|
||||
name = "bitwarden"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"base64",
|
||||
|
|
|
@ -78,7 +78,7 @@ fn decrypt_cached(
|
|||
master_password: &str
|
||||
) {
|
||||
progress.set_content("decrypting ...");
|
||||
vault.auth.cipher = CipherSuite::from(&email, master_password, vault.auth.kdf_iterations);
|
||||
vault.auth.cipher = CipherSuite::from(email, master_password, vault.auth.kdf_iterations);
|
||||
|
||||
if vault.auth.cipher.set_decrypt_key(&vault.sync.profile.key).is_err() {
|
||||
handle_login_error(sink, Some(vault), ApiError::LoginFailed);
|
||||
|
@ -93,7 +93,7 @@ fn decrypt_cached(
|
|||
}
|
||||
|
||||
fn sync_and_decrypt(sink: CursiveSink, progress: TextContent, email: &str, master_password: &str) {
|
||||
match bitwarden::authenticate(&email, &master_password) {
|
||||
match bitwarden::authenticate(email, master_password) {
|
||||
Ok(auth) => {
|
||||
progress.set_content("syncing ...");
|
||||
let vault = sync_vault_data(auth).unwrap();
|
||||
|
|
|
@ -205,7 +205,7 @@ pub fn decrypt(vault: &mut VaultData) {
|
|||
vault.decrypted = vault.sync
|
||||
.ciphers
|
||||
.iter()
|
||||
.map(|c| VaultEntry::from_cipher_entry(&c, &vault.auth.cipher).unwrap())
|
||||
.map(|c| VaultEntry::from_cipher_entry(c, &vault.auth.cipher).unwrap())
|
||||
.collect();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue