From 02e07a18fcb3af9319c271f6e41d5b7785e2e436 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:52:19 +0800 Subject: style: satisfy clippy pedantic and nursery lints --- arg_picker/src/pickable/multi_pickable.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arg_picker/src/pickable/multi_pickable.rs') diff --git a/arg_picker/src/pickable/multi_pickable.rs b/arg_picker/src/pickable/multi_pickable.rs index 404c23b..c5cd810 100644 --- a/arg_picker/src/pickable/multi_pickable.rs +++ b/arg_picker/src/pickable/multi_pickable.rs @@ -35,7 +35,7 @@ pub trait MultiPickableWithBoundary: Sized { pub struct NoBoundary; impl BoundaryCheck for NoBoundary { - #[inline(always)] + #[inline] fn check_boundary(_raw: &str) -> bool { false } @@ -46,7 +46,7 @@ impl MultiPickableWithBoundary for Vec { type Checker = NoBoundary; fn pick_multi(raw: Vec) -> PickerArgResult { - let mut result = Vec::with_capacity(raw.len()); + let mut result = Self::with_capacity(raw.len()); for s in &raw { match T::pick_single(Some(s)) { PickerArgResult::Parsed(v) => result.push(v), @@ -87,6 +87,6 @@ where fn pick(raw_strs: &[&str]) -> PickerArgResult { let strs = strip_flag(raw_strs); let owned: Vec = strs.iter().map(|&s| s.to_string()).collect(); - as MultiPickableWithBoundary>::pick_multi(owned) + ::pick_multi(owned) } } -- cgit