From 40bb7ffd6954184fac718c8f99c9cdc3e054e4eb Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Aug 2026 07:35:42 +0800 Subject: 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. --- mingling_cli/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mingling_cli/src/lib.rs') 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", -- cgit