diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-17 07:35:42 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-17 07:35:42 +0800 |
| commit | 40bb7ffd6954184fac718c8f99c9cdc3e054e4eb (patch) | |
| tree | 3b152edba07fa561b6e2792fcaa4c3f7141f3b35 /mingling_cli/src/lib.rs | |
| parent | c6ab865d5b19e3a57b76562adb9540cbf03d77c4 (diff) | |
feat(macros)!: change completion context parameter to owned type
BREAKING CHANGE: `#[completion]` functions must now take `ShellContext`
by value instead of `&ShellContext`. Reference parameters are reserved
for resource injection.
Diffstat (limited to 'mingling_cli/src/lib.rs')
| -rw-r--r-- | mingling_cli/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_cli/src/lib.rs b/mingling_cli/src/lib.rs index e82300e..d5a5b22 100644 --- a/mingling_cli/src/lib.rs +++ b/mingling_cli/src/lib.rs @@ -30,7 +30,7 @@ pub fn help_global(_: EntryFallback) -> String { } #[completion(EntryFallback)] -pub fn complete_global(_ctx: &ShellContext) -> Suggest { +pub fn complete_global(_ctx: ShellContext) -> Suggest { suggest! { HELP_FLAG: "Show help messages", ARG_FEATURES.clone(): "List of features to enable", |
