mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Inline StrSearcher::haystack()
This commit is contained in:
parent
ff9f2d2ae9
commit
ca52d80338
|
@ -618,7 +618,10 @@ fn new(haystack: &'a str, needle: &'b str) -> StrSearcher<'a, 'b> {
|
|||
}
|
||||
|
||||
unsafe impl<'a, 'b> Searcher<'a> for StrSearcher<'a, 'b> {
|
||||
fn haystack(&self) -> &'a str { self.haystack }
|
||||
#[inline]
|
||||
fn haystack(&self) -> &'a str {
|
||||
self.haystack
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> SearchStep {
|
||||
|
|
Loading…
Reference in a new issue