From 925c88140aabc402d0c25b91be292b14872ac904 Mon Sep 17 00:00:00 2001 From: adelarja Date: Mon, 4 Sep 2023 20:39:48 -0300 Subject: [PATCH] replaced match by if let --- clients/wallet/src/stellar_wallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/wallet/src/stellar_wallet.rs b/clients/wallet/src/stellar_wallet.rs index 7b0f6b266..715dd63f1 100644 --- a/clients/wallet/src/stellar_wallet.rs +++ b/clients/wallet/src/stellar_wallet.rs @@ -399,7 +399,7 @@ pub fn are_memos_eq(memo1: &Vec, memo2: &Vec) -> bool { // Error handling methods for StellarWallet. #[cfg_attr(test, mockable)] impl StellarWallet { - pub async fn handle_error(&self, error: &Error) -> Result { + pub async fn handle_error(&self, error: Error) -> Result { match &error { Error::HorizonSubmissionError { title: _, status: _, reason, envelope_xdr } => match &reason[..] {