From 9b4cffd48482481691f782e74a4726294043bc57 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Jul 2026 00:21:23 +0800 Subject: feat(picker): extract remains constant and consolidate imports Move the inline `remains_arg` definition into a shared public constant `REMAINS` and update all consumers to import it from the new location. --- mingling/src/setups/picker/basic.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mingling/src/setups/picker/basic.rs') diff --git a/mingling/src/setups/picker/basic.rs b/mingling/src/setups/picker/basic.rs index 0539a09..318edbd 100644 --- a/mingling/src/setups/picker/basic.rs +++ b/mingling/src/setups/picker/basic.rs @@ -1,7 +1,10 @@ -use arg_picker::{IntoPicker, PickerArg, PickerArgs, value::Flag}; +use arg_picker::{IntoPicker, PickerArg, value::Flag}; use mingling_core::{Program, ProgramCollect, setup::ProgramSetup}; -use crate::setups::picker::{CONFIRM_FLAG, HELP_FLAG, QUIET_FLAG}; +use crate::{ + setup::picker::REMAINS, + setups::picker::{CONFIRM_FLAG, HELP_FLAG, QUIET_FLAG}, +}; /// Helper: picks a boolean flag from the program arguments, calls `f` with the /// flag value, then replaces the program arguments with the remaining args. -- cgit