diff options
Diffstat (limited to 'mingling_picker/src/arg.rs')
| -rw-r--r-- | mingling_picker/src/arg.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mingling_picker/src/arg.rs b/mingling_picker/src/arg.rs index 3b5f8b1..a18a616 100644 --- a/mingling_picker/src/arg.rs +++ b/mingling_picker/src/arg.rs @@ -39,6 +39,20 @@ where pub internal_type: PhantomData<Type>, } +impl<'a, Type> From<&'a PickerArg<'a, Type>> for PickerArg<'a, Type> +where + Type: Pickable<'a>, +{ + fn from(value: &'a PickerArg<'a, Type>) -> Self { + PickerArg { + full: value.full, + short: value.short, + positional: value.positional, + internal_type: PhantomData, + } + } +} + impl<'a, Type> PickerArg<'a, Type> where Type: Pickable<'a>, |
