diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-16 22:08:39 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-16 22:08:39 +0800 |
| commit | c48149a86eafcca967ef9aa947864fb4d0c727ea (patch) | |
| tree | c794eaef4435cb0f4ec8524861ebf3165f660097 /mingling_macros/src/dispatcher_clap.rs | |
| parent | 5fe400c006d9d143aa7b977cb13f95e7380754a5 (diff) | |
Replace hardcoded `ThisProgram` ident with shared constant
Diffstat (limited to 'mingling_macros/src/dispatcher_clap.rs')
| -rw-r--r-- | mingling_macros/src/dispatcher_clap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_macros/src/dispatcher_clap.rs b/mingling_macros/src/dispatcher_clap.rs index 37c662f..2a1ac44 100644 --- a/mingling_macros/src/dispatcher_clap.rs +++ b/mingling_macros/src/dispatcher_clap.rs @@ -144,7 +144,7 @@ pub fn dispatcher_clap_attr(attr: TokenStream, item: TokenStream) -> TokenStream error_struct: options.error_struct.clone(), help_enabled: options.help_enabled, }, - Ident::new("ThisProgram", proc_macro2::Span::call_site()), + Ident::new(DEFAULT_PROGRAM_NAME, proc_macro2::Span::call_site()), ), DispatcherClapInput::Explicit { group_name, |
