Skip to content

Commit f1a13c8

Browse files
committed
Fixed compilation errors
1 parent c74ca6c commit f1a13c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ fn find_class(classes: NamedClasses, name: &str) -> Option<Vec<(char, char)>> {
10361036
}
10371037

10381038
type Class = &'static [(char, char)];
1039-
type NamedClasses = &'static [(&'static str, &'static Class)];
1039+
type NamedClasses = &'static [(&'static str, Class)];
10401040

10411041
static ASCII_CLASSES: NamedClasses = &[
10421042
// Classes must be in alphabetical order so that bsearch works.

src/re.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ impl<'r, 't> Iterator for FindMatches<'r, 't> {
952952
}
953953
}
954954

955-
struct RegexSearcher<'r, 't> {
955+
pub struct RegexSearcher<'r, 't> {
956956
it: FindMatches<'r, 't>,
957957
last_step_end: usize,
958958
next_match: Option<(usize, usize)>,

0 commit comments

Comments
 (0)