diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-18 01:59:19 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-18 01:59:19 +0800 |
| commit | 6f2053e27a4dda5d6208b27bd652a9e861173e59 (patch) | |
| tree | 9d5862f942dd2bbb751bfcc11f49614f11c21705 /mingling_macros/src/lib.rs | |
| parent | f5a4cebde2f12eb980de73ea41eb8d9e133ae49a (diff) | |
feat(macros): relax `#[help]` return type to accept `Into<RenderResult>`
Diffstat (limited to 'mingling_macros/src/lib.rs')
| -rw-r--r-- | mingling_macros/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs index e9fc327..9419f39 100644 --- a/mingling_macros/src/lib.rs +++ b/mingling_macros/src/lib.rs @@ -1235,7 +1235,7 @@ pub fn register_dispatcher(input: TokenStream) -> TokenStream { /// /// - The function must have exactly one parameter (the entry type to provide help for). /// - The parameter type must be a single-segment type path (e.g., `MyEntry`, not `other::MyEntry`). -/// - The function must return `RenderResult`. +/// - The function may return `RenderResult`, `()`, or any type that implements `Into<RenderResult>`. /// - The function cannot be async. /// /// # See also |
