diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-20 01:11:25 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-20 01:11:25 +0800 |
| commit | 9d491352d161ee629cc47459537344ba0ea4bb35 (patch) | |
| tree | 40d847da5cfafce48c3ca99c78bcc077da4c4fb2 /mingling_macros/src/dispatcher.rs | |
| parent | 8749087c5035fbe4c0dce0893a39e0e2265fa130 (diff) | |
Add shared `MockProgramCollect` and conditional `Groupped` bounds
Extract duplicate `MockCollect` implementations into a reusable
`MockProgramCollect` type. Conditionally require `Serialize` on the
`Groupped` trait when the `general_renderer` feature is enabled.
Diffstat (limited to 'mingling_macros/src/dispatcher.rs')
| -rw-r--r-- | mingling_macros/src/dispatcher.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mingling_macros/src/dispatcher.rs b/mingling_macros/src/dispatcher.rs index 7e973eb..6bf10f1 100644 --- a/mingling_macros/src/dispatcher.rs +++ b/mingling_macros/src/dispatcher.rs @@ -223,6 +223,7 @@ pub fn dispatcher(input: TokenStream) -> TokenStream { ::mingling::macros::node!(#command_name_str) } fn begin(&self, args: Vec<String>) -> ::mingling::ChainProcess<#program_path> { + use ::mingling::Groupped; #pack::new(args).to_chain() } fn clone_dispatcher(&self) -> Box<dyn ::mingling::Dispatcher<#program_path>> { |
