aboutsummaryrefslogtreecommitdiff
path: root/arg_picker/src/parselib/multi_arg_matcher.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-10 16:52:19 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-10 16:52:19 +0800
commit02e07a18fcb3af9319c271f6e41d5b7785e2e436 (patch)
treeff76916c254e87a7aadc5cb4dfd2134eaf4f03fc /arg_picker/src/parselib/multi_arg_matcher.rs
parent03b487f0f93ac32835149d4c1a0fb420341134f8 (diff)
style: satisfy clippy pedantic and nursery lints
Diffstat (limited to 'arg_picker/src/parselib/multi_arg_matcher.rs')
-rw-r--r--arg_picker/src/parselib/multi_arg_matcher.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/arg_picker/src/parselib/multi_arg_matcher.rs b/arg_picker/src/parselib/multi_arg_matcher.rs
index 748b1be..6791121 100644
--- a/arg_picker/src/parselib/multi_arg_matcher.rs
+++ b/arg_picker/src/parselib/multi_arg_matcher.rs
@@ -115,7 +115,7 @@ impl Matcher for MultiArgMatcher {
}
impl MultiArgMatcher {
- #[inline(always)]
+ #[inline]
fn flag_match(raw: &str, flag_str: &str, case_sensitive: bool, sep: char) -> bool {
let eq =
|r: &str, f: &str| r.len() > f.len() && r.as_bytes().get(f.len()) == Some(&(sep as u8));
@@ -130,7 +130,7 @@ impl MultiArgMatcher {
}
}
- #[inline(always)]
+ #[inline]
fn is_eq_match(raw: &str, flags: &[String], case_sensitive: bool, sep: char) -> bool {
flags.iter().any(|f| {
Self::flag_match(raw, f, case_sensitive, sep)