diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-14 19:43:56 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-14 19:51:19 +0800 |
| commit | fdd26053228593162fd5c41df9cfbc45d0c731b9 (patch) | |
| tree | c8782756a80d8fadf681ead52b4e512d4a1b2a9d /mingling_picker/src/flag.rs | |
| parent | 538516a2104edba2c35b1f4ce40ec5a25589b62b (diff) | |
feat: add lifetime-bound pickable support and refine type constraints
Diffstat (limited to 'mingling_picker/src/flag.rs')
| -rw-r--r-- | mingling_picker/src/flag.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<char>, positional: bool) -> Self { |
