From 7ff051635eac6b10fcd66a1878563c8155a661a4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 29 Jun 2026 04:26:44 +0800 Subject: fix(dispatcher): use full command name for entry generation --- mingling_pathf/src/patterns/dispatcher.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mingling_pathf/src') diff --git a/mingling_pathf/src/patterns/dispatcher.rs b/mingling_pathf/src/patterns/dispatcher.rs index 7bb076c..c347351 100644 --- a/mingling_pathf/src/patterns/dispatcher.rs +++ b/mingling_pathf/src/patterns/dispatcher.rs @@ -94,8 +94,7 @@ fn extract_dispatcher_entry(tokens: &proc_macro2::TokenStream) -> Option if let Some(start) = stream.find('"') { let rest = &stream[start + 1..]; let cmd_name = rest.split('"').next()?; - let last_segment = cmd_name.split('.').next_back()?; - let entry = format!("Entry{}", to_pascal_case(last_segment)); + let entry = format!("Entry{}", to_pascal_case(cmd_name)); Some(entry) } else { None -- cgit