diff --git a/src/parse.rs b/src/parse.rs index afdbba38e5..1e811b8b69 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -1036,7 +1036,7 @@ fn find_class(classes: NamedClasses, name: &str) -> Option> { } type Class = &'static [(char, char)]; -type NamedClasses = &'static [(&'static str, &'static Class)]; +type NamedClasses = &'static [(&'static str, Class)]; static ASCII_CLASSES: NamedClasses = &[ // Classes must be in alphabetical order so that bsearch works. diff --git a/src/re.rs b/src/re.rs index 81e48344a8..50736c2da1 100644 --- a/src/re.rs +++ b/src/re.rs @@ -952,7 +952,7 @@ impl<'r, 't> Iterator for FindMatches<'r, 't> { } } -struct RegexSearcher<'r, 't> { +pub struct RegexSearcher<'r, 't> { it: FindMatches<'r, 't>, last_step_end: usize, next_match: Option<(usize, usize)>,