]> git.proxmox.com Git - cargo.git/blobdiff - vendor/regex/src/pattern.rs
New upstream version 0.63.1
[cargo.git] / vendor / regex / src / pattern.rs
index e94266709f633b4cac53fb1606bd7a97af4c427c..00549e510628a38d49355713c5564d48a65f8f51 100644 (file)
@@ -1,7 +1,8 @@
 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>,
@@ -14,7 +15,7 @@ impl<'r, 't> Pattern<'t> for &'r Regex {
 
     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,