From 2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 31 May 2026 02:42:52 +0800 Subject: Enhance code quality across the entire codebase --- mingling_core/src/tester/chain_process_tester.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling_core/src/tester') 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::() .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` -- cgit