diff options
Diffstat (limited to 'mingling_core/src/asset')
| -rw-r--r-- | mingling_core/src/asset/chain/error.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/mingling_core/src/asset/chain/error.rs b/mingling_core/src/asset/chain/error.rs index 5221e57..e5c753d 100644 --- a/mingling_core/src/asset/chain/error.rs +++ b/mingling_core/src/asset/chain/error.rs @@ -1,4 +1,4 @@ -use crate::error::{ProgramExecuteError, ProgramInternalExecuteError}; +use crate::error::ProgramInternalExecuteError; #[derive(thiserror::Error, Debug)] pub enum ChainProcessError { @@ -9,20 +9,6 @@ pub enum ChainProcessError { IO(#[from] std::io::Error), } -impl From<ProgramExecuteError> for ChainProcessError { - fn from(value: ProgramExecuteError) -> Self { - match value { - ProgramExecuteError::DispatcherNotFound => { - ChainProcessError::Other("DispatcherNotFound".into()) - } - ProgramExecuteError::RendererNotFound(r) => { - ChainProcessError::Other(format!("RendererNotFound: {}", r)) - } - ProgramExecuteError::Other(e) => ChainProcessError::Other(e), - } - } -} - impl From<ProgramInternalExecuteError> for ChainProcessError { fn from(value: ProgramInternalExecuteError) -> Self { match value { |
