Skip to content

Commit

Permalink
replaced match by if let
Browse files Browse the repository at this point in the history
  • Loading branch information
adelarja authored and b-yap committed Oct 25, 2023
1 parent 6b7ebff commit 925c881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/wallet/src/stellar_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ pub fn are_memos_eq(memo1: &Vec<u8>, memo2: &Vec<u8>) -> bool {
// Error handling methods for StellarWallet.
#[cfg_attr(test, mockable)]
impl StellarWallet {
pub async fn handle_error(&self, error: &Error) -> Result<TransactionResponse, Error> {
pub async fn handle_error(&self, error: Error) -> Result<TransactionResponse, Error> {
match &error {
Error::HorizonSubmissionError { title: _, status: _, reason, envelope_xdr } =>
match &reason[..] {
Expand Down

0 comments on commit 925c881

Please sign in to comment.