From 1657dd5b5780f2ba69c699c227e2718df64efa0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Wed, 6 Apr 2022 17:00:47 +0200 Subject: [PATCH] wallet: add From impl for UserPassword --- nym-wallet/src-tauri/src/wallet_storage/password.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nym-wallet/src-tauri/src/wallet_storage/password.rs b/nym-wallet/src-tauri/src/wallet_storage/password.rs index 04b85277a1..ae17569c95 100644 --- a/nym-wallet/src-tauri/src/wallet_storage/password.rs +++ b/nym-wallet/src-tauri/src/wallet_storage/password.rs @@ -47,3 +47,9 @@ impl AsRef for UserPassword { self.0.as_ref() } } + +impl From for UserPassword { + fn from(username: String) -> Self { + Self::new(username) + } +}