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) + } +}