diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-26 14:15:35 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-26 14:15:35 +0800 |
| commit | e2cfab8c0464b7d5981414c2d88cbf09f7895f8f (patch) | |
| tree | fef5fa3e26498284681384a49eb384755e7e55a4 | |
| parent | 129fce639c85a489873e68a4ac19d19a07698125 (diff) | |
Fix feature name from clap_parser to clap in dispatcher macro
| -rw-r--r-- | mingling_macros/src/dispatcher_clap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_macros/src/dispatcher_clap.rs b/mingling_macros/src/dispatcher_clap.rs index 5184bce..06f2c5a 100644 --- a/mingling_macros/src/dispatcher_clap.rs +++ b/mingling_macros/src/dispatcher_clap.rs @@ -4,7 +4,7 @@ //! automatically generating a `Dispatcher` implementation that uses `clap::Parser` //! to parse command arguments into the annotated struct. //! -//! This macro is only available when the `clap_parser` feature is enabled. +//! This macro is only available when the `clap` feature is enabled. //! //! # Syntax //! @@ -164,7 +164,7 @@ impl Parse for DispatcherClapInput { } } -#[cfg(feature = "clap_parser")] +#[cfg(feature = "clap")] pub fn dispatcher_clap_attr(attr: TokenStream, item: TokenStream) -> TokenStream { let attr_input = parse_macro_input!(attr as DispatcherClapInput); let input_struct = parse_macro_input!(item as ItemStruct); |
