aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/asset/chain
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-31 02:42:52 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-31 17:19:20 +0800
commit2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 (patch)
treef10b89007fc67ca1a948f34abe6869b49296b932 /mingling_core/src/asset/chain
parent3aa409a55e4f2f0ab41b0949cc06eb13c2da4a43 (diff)
Enhance code quality across the entire codebase
Diffstat (limited to 'mingling_core/src/asset/chain')
-rw-r--r--mingling_core/src/asset/chain/error.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mingling_core/src/asset/chain/error.rs b/mingling_core/src/asset/chain/error.rs
index ce69bc5..29abba1 100644
--- a/mingling_core/src/asset/chain/error.rs
+++ b/mingling_core/src/asset/chain/error.rs
@@ -13,8 +13,8 @@ pub enum ChainProcessError {
impl std::fmt::Display for ChainProcessError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
- ChainProcessError::Other(s) => write!(f, "Other error: {}", s),
- ChainProcessError::IO(e) => write!(f, "IO error: {}", e),
+ ChainProcessError::Other(s) => write!(f, "Other error: {s}"),
+ ChainProcessError::IO(e) => write!(f, "IO error: {e}"),
}
}
}
@@ -41,14 +41,14 @@ impl From<ProgramInternalExecuteError> for ChainProcessError {
ChainProcessError::Other("DispatcherNotFound".into())
}
ProgramInternalExecuteError::RendererNotFound(r) => {
- ChainProcessError::Other(format!("RendererNotFound: {}", r))
+ ChainProcessError::Other(format!("RendererNotFound: {r}"))
}
ProgramInternalExecuteError::Other(e) => ChainProcessError::Other(e),
ProgramInternalExecuteError::IO(e) => {
- ChainProcessError::Other(format!("IOError: {:?}", e))
+ ChainProcessError::Other(format!("IOError: {e:?}"))
}
ProgramInternalExecuteError::REPLPanic(program_panic) => {
- ChainProcessError::Other(format!("REPLPanic: {}", program_panic))
+ ChainProcessError::Other(format!("REPLPanic: {program_panic}"))
}
}
}