1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Index: onig/src/pattern.rs
===================================================================
--- onig.orig/src/pattern.rs
+++ onig/src/pattern.rs
@@ -12,17 +12,17 @@ pub struct RegexSearcher<'r, 'a> {
cached_match: Option<(usize, usize)>,
}
-impl<'r, 'a> Pattern<'a> for &'r Regex {
+impl<'r> Pattern for &'r Regex {
/// Searcher Type
///
/// The searcher is the type responsible for returning an iterator
/// of matches in a given string
- type Searcher = RegexSearcher<'r, 'a>;
+ type Searcher<'a> = RegexSearcher<'r, 'a>;
/// Into Searcher
///
/// Creates a new searcher instance from this `Regex` pattern
- fn into_searcher(self, haystack: &'a str) -> Self::Searcher {
+ fn into_searcher<'a>(self, haystack: &'a str) -> Self::Searcher<'a> {
RegexSearcher::new(self, haystack)
}
}
|