We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Pattern
1 parent 8856fe3 commit 2970d29Copy full SHA for 2970d29
src/pattern.rs
@@ -10,10 +10,10 @@ pub struct RegexSearcher<'r, 't> {
10
next_match: Option<(usize, usize)>,
11
}
12
13
-impl<'r, 't> Pattern<'t> for &'r Regex {
14
- type Searcher = RegexSearcher<'r, 't>;
+impl<'r> Pattern for &'r Regex {
+ type Searcher<'t> = RegexSearcher<'r, 't>;
15
16
- fn into_searcher(self, haystack: &'t str) -> RegexSearcher<'r, 't> {
+ fn into_searcher<'t>(self, haystack: &'t str) -> RegexSearcher<'r, 't> {
17
RegexSearcher {
18
haystack,
19
it: self.find_iter(haystack),
0 commit comments