From fdd26053228593162fd5c41df9cfbc45d0c731b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 14 Jul 2026 19:43:56 +0800 Subject: feat: add lifetime-bound pickable support and refine type constraints --- mingling_picker/src/flag.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_picker/src/flag.rs') diff --git a/mingling_picker/src/flag.rs b/mingling_picker/src/flag.rs index 0b351f8..86712c9 100644 --- a/mingling_picker/src/flag.rs +++ b/mingling_picker/src/flag.rs @@ -24,7 +24,7 @@ use std::marker::PhantomData; #[derive(Default, Clone, Copy)] pub struct PickerFlag<'a, Type> where - Type: Default + Pickable, + Type: Default + Pickable<'a>, { /// Full name, may include variant names (aliases), e.g., `["config", "cfg"]`. pub full: &'a [&'a str], @@ -41,7 +41,7 @@ where impl<'a, Type> PickerFlag<'a, Type> where - Type: Default + Pickable, + Type: Default + Pickable<'a>, { /// Creates a new `PickerFlag` with the provided parameters. pub fn new(full: &'a [&'a str], short: Option, positional: bool) -> Self { -- cgit