aboutsummaryrefslogtreecommitdiff
path: root/arg_picker/src/parselib/multi_arg_matcher.rs
diff options
context:
space:
mode:
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)