use std::str::pattern::{Pattern, SearchStep, Searcher};
-use re_unicode::{Matches, Regex};
+use crate::re_unicode::{Matches, Regex};
+#[derive(Debug)]
pub struct RegexSearcher<'r, 't> {
haystack: &'t str,
it: Matches<'r, 't>,
fn into_searcher(self, haystack: &'t str) -> RegexSearcher<'r, 't> {
RegexSearcher {
- haystack: haystack,
+ haystack,
it: self.find_iter(haystack),
last_step_end: 0,
next_match: None,