From f772310ebbed4e3c33fd72ae8a70a724e91125fa Mon Sep 17 00:00:00 2001 From: Samuel Onoja Date: Wed, 8 May 2024 01:26:52 +0100 Subject: [PATCH] fix cargo clippy --- mm2src/coins/solana/solana_common.rs | 2 ++ mm2src/coins/solana/spl.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/mm2src/coins/solana/solana_common.rs b/mm2src/coins/solana/solana_common.rs index 625373253e..662b6d8fe1 100644 --- a/mm2src/coins/solana/solana_common.rs +++ b/mm2src/coins/solana/solana_common.rs @@ -3,6 +3,7 @@ use crate::{BalanceError, MarketCoinOps, NumConversError, SignatureError, Signat UnexpectedDerivationMethod, VerificationError, VerificationResult, WithdrawError}; use base58::FromBase58; use derive_more::Display; +use enum_derives::EnumFromStringify; use futures::compat::Future01CompatExt; use mm2_err_handle::prelude::*; use mm2_number::bigdecimal::{BigDecimal, ToPrimitive}; @@ -49,6 +50,7 @@ impl From for SufficientBalanceError { } } } + impl From for WithdrawError { fn from(e: SufficientBalanceError) -> Self { match e { diff --git a/mm2src/coins/solana/spl.rs b/mm2src/coins/solana/spl.rs index 0a12fccca0..e97578bc02 100644 --- a/mm2src/coins/solana/spl.rs +++ b/mm2src/coins/solana/spl.rs @@ -18,6 +18,7 @@ use async_trait::async_trait; use bincode::serialize; use common::executor::{abortable_queue::AbortableQueue, AbortableSystem, AbortedError}; use common::{async_blocking, now_sec}; +use enum_derives::EnumFromStringify; use futures::{FutureExt, TryFutureExt}; use futures01::Future; use keys::KeyPair;