aboutsummaryrefslogtreecommitdiff
path: root/mingling_core
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-07 22:14:36 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-07 22:14:36 +0800
commit3a58dc5cea258fb81e8443496f9dac309d11448c (patch)
treeedfba815a65b6b23da67c2c309ed0a96082fd812 /mingling_core
parent6703ccb0fc3aca7ba4bdb9083f199fe0c1b66bd9 (diff)
Add compile-time dispatch tree generation for O(len) command routing
Diffstat (limited to 'mingling_core')
-rw-r--r--mingling_core/src/program.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs
index df5b285..a28e9b7 100644
--- a/mingling_core/src/program.rs
+++ b/mingling_core/src/program.rs
@@ -419,6 +419,7 @@ macro_rules! __dispatch_program_chains {
}
/// Get all registered dispatcher names from the program
+#[allow(unused_variables)]
pub fn get_nodes<C: ProgramCollect<Enum = C>>(
program: &'static Program<C>,
) -> Vec<(String, &'static (dyn Dispatcher<C> + Send + Sync + 'static))> {