From b1b344e4bf5da330bc06a662ad77fc3408669482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garci=CC=81a?= Date: Mon, 13 Nov 2023 13:19:29 +0100 Subject: [PATCH] Simplify parse --- crates/bitwarden/src/mobile/crypto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bitwarden/src/mobile/crypto.rs b/crates/bitwarden/src/mobile/crypto.rs index e753a274e..2cf850279 100644 --- a/crates/bitwarden/src/mobile/crypto.rs +++ b/crates/bitwarden/src/mobile/crypto.rs @@ -42,11 +42,11 @@ pub async fn initialize_user_crypto(client: &mut Client, req: InitUserCryptoRequ }); client.set_login_method(login_method); - let private_key = req.private_key.parse::()?; + let private_key: EncString = req.private_key.parse()?; match req.method { InitUserCryptoMethod::Password { password, user_key } => { - let user_key: EncString = user_key.parse::()?; + let user_key: EncString = user_key.parse()?; client.initialize_user_crypto(&password, user_key, private_key)?; } }