diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-14 23:00:15 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-15 12:45:54 -0500 |
commit | acd1173848b4db1c733af7d3f53d24aab900b542 (patch) | |
tree | b0a1151e390c6063169325bc4520d7b79ac50d9e /src/actions.rs | |
parent | cc20037ff21a259419c7c00f6fce82ded3888d1e (diff) | |
download | rbw-acd1173848b4db1c733af7d3f53d24aab900b542.tar.gz rbw-acd1173848b4db1c733af7d3f53d24aab900b542.zip |
clippy
Diffstat (limited to 'src/actions.rs')
-rw-r--r-- | src/actions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.rs b/src/actions.rs index 02ec854..b16e6f2 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -39,13 +39,13 @@ pub async fn login( Ok((access_token, refresh_token, iterations, protected_key)) } -pub async fn unlock( +pub fn unlock<S: std::hash::BuildHasher>( email: &str, password: &crate::locked::Password, iterations: u32, protected_key: &str, protected_private_key: &str, - protected_org_keys: &std::collections::HashMap<String, String>, + protected_org_keys: &std::collections::HashMap<String, String, S>, ) -> Result<( crate::locked::Keys, std::collections::HashMap<String, crate::locked::Keys>, @@ -148,7 +148,7 @@ fn add_once( let config = crate::config::Config::load()?; let client = crate::api::Client::new(&config.base_url(), &config.identity_url()); - client.add(access_token, name, data, notes, folder_id.as_deref())?; + client.add(access_token, name, data, notes, folder_id)?; Ok(()) } |