From e8e33963801b63d03a2b6d5f872348add2cecc56 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 11 Apr 2026 19:17:45 +0800 Subject: Apply clippy suggestions and remove unused serde dependency --- mingling_core/src/program.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling_core/src/program.rs') diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index 42ca531..cf8b06c 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -166,7 +166,7 @@ where } // Get all registered dispatcher names from the program - pub fn get_nodes(&self) -> Vec<(String, &Box + Send + Sync>)> { + pub fn get_nodes(&self) -> Vec<(String, &(dyn Dispatcher + Send + Sync))> { get_nodes(self) } } @@ -260,7 +260,7 @@ macro_rules! __dispatch_program_chains { // Get all registered dispatcher names from the program pub fn get_nodes, G: Display>( program: &Program, -) -> Vec<(String, &Box + Send + Sync>)> { +) -> Vec<(String, &(dyn Dispatcher + Send + Sync))> { program .dispatcher .iter() @@ -271,7 +271,7 @@ pub fn get_nodes, G: Display>( .split('.') .collect::>() .join(" "); - (node_str, disp) + (node_str, &**disp) }) .collect() } -- cgit