aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/tester
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/tester
parent3aa409a55e4f2f0ab41b0949cc06eb13c2da4a43 (diff)
Enhance code quality across the entire codebase
Diffstat (limited to 'mingling_core/src/tester')
-rw-r--r--mingling_core/src/tester/chain_process_tester.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_core/src/tester/chain_process_tester.rs b/mingling_core/src/tester/chain_process_tester.rs
index 8189c28..ca809e4 100644
--- a/mingling_core/src/tester/chain_process_tester.rs
+++ b/mingling_core/src/tester/chain_process_tester.rs
@@ -47,7 +47,7 @@ where
}
}
ChainProcess::Err(chain_process_error) => {
- panic!("Chain process error: {}", chain_process_error);
+ panic!("Chain process error: {chain_process_error}");
}
}
}
@@ -87,7 +87,7 @@ where
ChainProcess::Ok((any, _next)) => any
.downcast_ref::<Type>()
.expect("Type mismatch: expected type does not match actual output type"),
- ChainProcess::Err(chain_process_error) => panic!("{:?}", chain_process_error),
+ ChainProcess::Err(chain_process_error) => panic!("{chain_process_error:?}"),
}
}
@@ -187,7 +187,7 @@ macro_rules! assert_render_result {
};
}
-/// Asserts that the result's output type matches the expected member_id.
+/// Asserts that the result's output type matches the expected `member_id`.
///
/// This macro checks that the `ChainProcess` result is `Ok` and that its output type identifier
/// matches the expected type. It is a convenience wrapper around `assert_next_eq` with the `next`