aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-04-06 21:42:35 -0400
committerJesse Luehrs <doy@tozt.net>2020-04-06 21:42:35 -0400
commit8b655f36b868cb023dcdd1ff712de80a59ccbdb1 (patch)
treedce0912bb14147346ee0fa35f1b971f6364a51bc /src/actions.rs
parentca02ec8ca2b24ae7997de80b662cfd3635d75e9e (diff)
downloadrbw-8b655f36b868cb023dcdd1ff712de80a59ccbdb1.tar.gz
rbw-8b655f36b868cb023dcdd1ff712de80a59ccbdb1.zip
clippy
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.rs b/src/actions.rs
index 0998abc..f9b1354 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -7,9 +7,9 @@ pub async fn login(
let client =
crate::api::Client::new_self_hosted("https://bitwarden.tozt.net");
- let iterations = client.prelogin(&email).await?;
+ let iterations = client.prelogin(email).await?;
let identity =
- crate::identity::Identity::new(&email, &password, iterations)?;
+ crate::identity::Identity::new(email, password, iterations)?;
let (access_token, _refresh_token, protected_key) = client
.login(&identity.email, &identity.master_password_hash)
@@ -25,7 +25,7 @@ pub async fn unlock(
protected_key: String,
) -> Result<(Vec<u8>, Vec<u8>)> {
let identity =
- crate::identity::Identity::new(&email, &password, iterations)?;
+ crate::identity::Identity::new(email, password, iterations)?;
let protected_key =
crate::cipherstring::CipherString::new(&protected_key)?;