Files
sol-trade-sdk/src/grpc/myerror.rs
T
2025-01-23 17:48:10 +08:00

13 lines
204 B
Rust
Executable File

use anyhow::Error;
#[derive(Debug)]
#[allow(dead_code)]
pub struct AppError(Error);
impl<E> From<E> for AppError
where
E: Into<Error>,
{
fn from(err: E) -> Self {
Self(err.into())
}
}