Skip to content

Commit c16ca8c

Browse files
committed
fix inline fail
1 parent 9175272 commit c16ca8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/str/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl<'a, P: Pattern> SplitInternal<'a, P> {
656656
None
657657
}
658658

659-
#[inline]
659+
#[inline(always)]
660660
fn next(&mut self) -> Option<&'a str> {
661661
if self.finished {
662662
return None;

library/core/src/str/pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ unsafe impl<'a> Searcher<'a> for CharSearcher<'a> {
647647
| Self::AsciiCharSearcher(AsciiCharSearcher { haystack, .. })) = self;
648648
haystack
649649
}
650-
#[inline]
650+
#[inline(always)]
651651

652652
fn next_match(&mut self) -> Option<(usize, usize)> {
653653
match self {

0 commit comments

Comments
 (0)