From 056a21d4f0144a26ffff6688e1657953083b0efa Mon Sep 17 00:00:00 2001 From: Greg Chapple Date: Wed, 4 Mar 2015 12:59:39 +0000 Subject: [PATCH] Fixed compilation errors - fixes #50 --- src/parse.rs | 2 +- src/re.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)>,