From 6980fbf2f9fb4c599d8dc6ff549a8b3288eb24e9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Aug 2026 02:29:30 +0800 Subject: refactor!: remove dynamic dispatcher registration API Dispatchers are now always registered at compile time, removing the `with_dispatcher` / `with_dispatchers` methods and the `PathfinderConfig` API. The `dispatch_tree` feature now only controls the matching strategy (trie vs linear list). --- mingling_core/src/program/collection/mock.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'mingling_core/src/program/collection/mock.rs') diff --git a/mingling_core/src/program/collection/mock.rs b/mingling_core/src/program/collection/mock.rs index 662d8f2..d256cc1 100644 --- a/mingling_core/src/program/collection/mock.rs +++ b/mingling_core/src/program/collection/mock.rs @@ -3,7 +3,6 @@ use crate::{AnyOutput, ChainProcess, Grouped, ProgramCollect, RenderResult}; #[cfg(feature = "async")] use std::pin::Pin; -#[cfg(feature = "dispatch_tree")] use crate::Dispatcher; #[cfg(feature = "comp")] @@ -74,14 +73,12 @@ impl ProgramCollect for MockProgramCollect { type ErrorRendererNotFound = Self; type ResultEmpty = Self; - #[cfg(feature = "dispatch_tree")] fn dispatch_args( _raw: &[String], ) -> Result, crate::error::ProgramInternalExecuteError> { unreachable!() } - #[cfg(feature = "dispatch_tree")] fn get_nodes() -> Vec<(String, &'static (dyn Dispatcher + Send + Sync))> { unreachable!() } -- cgit