diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-11 19:17:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-11 19:17:45 +0800 |
| commit | e8e33963801b63d03a2b6d5f872348add2cecc56 (patch) | |
| tree | 87e2396356f060e9211829bcbe4f4c64b6e8d5ea /mingling_core/src/program.rs | |
| parent | 3a366931579cbda5fef32f1ae9d2ea09377c60af (diff) | |
Apply clippy suggestions and remove unused serde dependency
Diffstat (limited to 'mingling_core/src/program.rs')
| -rw-r--r-- | mingling_core/src/program.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<dyn Dispatcher<G> + Send + Sync>)> { + pub fn get_nodes(&self) -> Vec<(String, &(dyn Dispatcher<G> + 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<C: ProgramCollect<Enum = G>, G: Display>( program: &Program<C, G>, -) -> Vec<(String, &Box<dyn Dispatcher<G> + Send + Sync>)> { +) -> Vec<(String, &(dyn Dispatcher<G> + Send + Sync))> { program .dispatcher .iter() @@ -271,7 +271,7 @@ pub fn get_nodes<C: ProgramCollect<Enum = G>, G: Display>( .split('.') .collect::<Vec<_>>() .join(" "); - (node_str, disp) + (node_str, &**disp) }) .collect() } |
