diff --git a/src/pattern.rs b/src/pattern.rs index 2db04d8b3..5c4260e95 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -10,10 +10,10 @@ pub struct RegexSearcher<'r, 't> { next_match: Option<(usize, usize)>, } -impl<'r, 't> Pattern<'t> for &'r Regex { - type Searcher = RegexSearcher<'r, 't>; +impl<'r> Pattern for &'r Regex { + type Searcher<'t> = RegexSearcher<'r, 't>; - fn into_searcher(self, haystack: &'t str) -> RegexSearcher<'r, 't> { + fn into_searcher<'t>(self, haystack: &'t str) -> RegexSearcher<'r, 't> { RegexSearcher { haystack, it: self.find_iter(haystack),