update client error

This commit is contained in:
William
2025-01-25 12:41:21 +08:00
parent 87810d47bb
commit 3d3adec767
3 changed files with 49 additions and 47 deletions
+11 -11
View File
@@ -24,18 +24,18 @@ use solana_client::{
};
use solana_sdk::pubkey::ParsePubkeyError;
#[derive(Debug)]
#[allow(dead_code)]
pub struct AppError(anyhow::Error);
// #[derive(Debug)]
// #[allow(dead_code)]
// pub struct AppError(anyhow::Error);
impl<E> From<E> for AppError
where
E: Into<anyhow::Error>,
{
fn from(err: E) -> Self {
Self(err.into())
}
}
// impl<E> From<E> for AppError
// where
// E: Into<anyhow::Error>,
// {
// fn from(err: E) -> Self {
// Self(err.into())
// }
// }
#[derive(Debug)]
pub enum ClientError {