Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
borngraced committed Mar 28, 2024
1 parent 936ffb5 commit 6497f46
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 213 deletions.
7 changes: 3 additions & 4 deletions mm2src/coins/coin_errors.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use crate::{eth::Web3RpcError, my_tx_history_v2::MyTxHistoryErrorV2, utxo::rpc_clients::UtxoRpcError, DelegationError,
NumConversError, TxHistoryError, UnexpectedDerivationMethod, WithdrawError};
use enum_derives::EnumFromStringify;
use futures01::Future;
use mm2_err_handle::prelude::MmError;
use spv_validation::helpers_validation::SPVError;
use std::num::TryFromIntError;
use enum_derives::EnumFromStringify;

/// Helper type used as result for swap payment validation function(s)
pub type ValidatePaymentFut<T> = Box<dyn Future<Item=T, Error=MmError<ValidatePaymentError>> + Send>;
pub type ValidatePaymentFut<T> = Box<dyn Future<Item = T, Error = MmError<ValidatePaymentError>> + Send>;
/// Helper type used as result for swap payment validation function(s)
pub type ValidatePaymentResult<T> = Result<T, MmError<ValidatePaymentError>>;

Expand Down Expand Up @@ -61,13 +61,12 @@ impl From<Web3RpcError> for ValidatePaymentError {
Web3RpcError::InvalidResponse(resp) => ValidatePaymentError::InvalidRpcResponse(resp),
Web3RpcError::Internal(internal) | Web3RpcError::Timeout(internal) => {
ValidatePaymentError::InternalError(internal)
}
},
Web3RpcError::NftProtocolNotSupported => ValidatePaymentError::NftProtocolNotSupported,
}
}
}


#[derive(Debug, Display, EnumFromStringify)]
pub enum MyAddressError {
#[from_stringify("UnexpectedDerivationMethod")]
Expand Down
Loading

0 comments on commit 6497f46

Please sign in to comment.