diff --git a/mm2src/mm2_main/src/lp_wallet.rs b/mm2src/mm2_main/src/lp_wallet.rs index 69bf2b06ef..ffdca2b919 100644 --- a/mm2src/mm2_main/src/lp_wallet.rs +++ b/mm2src/mm2_main/src/lp_wallet.rs @@ -462,7 +462,7 @@ impl From for WalletsStorageRpcError { /// A `Result` type containing: /// /// * [`Ok`]([`GetMnemonicResponse`]) - The wallet mnemonic in the requested format. -/// * [`MmError`]<[`WalletsStorageRpcError>`]> - Returns specific [`GetMnemonicError`] variants for different failure scenarios. +/// * [`MmError`]<[`WalletsStorageRpcError>`]> - Returns specific [`WalletsStorageRpcError`] variants for different failure scenarios. /// /// # Errors /// diff --git a/mm2src/mm2_main/src/lp_wallet/mnemonics_storage.rs b/mm2src/mm2_main/src/lp_wallet/mnemonics_storage.rs index 4b064d94e4..e779f7b86a 100644 --- a/mm2src/mm2_main/src/lp_wallet/mnemonics_storage.rs +++ b/mm2src/mm2_main/src/lp_wallet/mnemonics_storage.rs @@ -1,14 +1,11 @@ -use crypto::{EncryptedData, MnemonicError}; -use enum_derives::EnumFromStringify; +use crypto::EncryptedData; use mm2_core::mm_ctx::MmArc; use mm2_err_handle::prelude::*; use mm2_io::fs::{ensure_file_is_writable, list_files_by_extension}; -use super::ReadPassphraseError; - type WalletsStorageResult = Result>; -#[derive(Debug, Deserialize, Display, Serialize, EnumFromStringify)] +#[derive(Debug, Deserialize, Display, Serialize)] pub enum WalletsStorageError { #[display(fmt = "Error writing to file: {}", _0)] FsWriteError(String), @@ -16,12 +13,6 @@ pub enum WalletsStorageError { FsReadError(String), #[display(fmt = "Internal error: {}", _0)] Internal(String), - #[display(fmt = "Mnemonic error: {}", _0)] - #[from_stringify("MnemonicError")] - MnemonicError(String), - #[display(fmt = "Read Passphrase error: {}", _0)] - #[from_stringify("ReadPassphraseError")] - ReadPassphraseError(String), } /// Saves the passphrase to a file associated with the given wallet name.