From ae91bf2f6412edee65660085811248e0127fa97b Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Mon, 27 Apr 2026 11:09:35 +0800 Subject: Remove `marker::NextProcess` and generate it via `gen_program!` --- examples/example-completion/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/example-completion/src') diff --git a/examples/example-completion/src/main.rs b/examples/example-completion/src/main.rs index 2e21a5c..8f88b2c 100644 --- a/examples/example-completion/src/main.rs +++ b/examples/example-completion/src/main.rs @@ -25,11 +25,10 @@ //! 4. Execute `cargo install --path ./`, then run the corresponding completion script in your shell use mingling::{ - EnumTag, Groupped, ShellContext, Suggest, + ChainProcess, EnumTag, Groupped, ShellContext, Suggest, macros::{ chain, completion, dispatcher, gen_program, r_println, renderer, suggest, suggest_enum, }, - marker::NextProcess, parser::{PickableEnum, Picker}, }; @@ -97,7 +96,7 @@ enum FruitType { impl PickableEnum for FruitType {} #[chain] -fn parse_fruit_info(prev: FruitEntry) -> NextProcess { +fn parse_fruit_info(prev: FruitEntry) -> ChainProcess { let picker = Picker::<()>::from(prev.inner); let (fruit_name, fruit_type) = picker.pick("--name").pick("--type").unpack_directly(); let info = FruitInfo { -- cgit