Upgrade rust/crates/regex to 1.5.4
Test: make
Change-Id: I0eab39246dc2aea41a62c15661e350b490f06c1d
diff --git a/src/re_trait.rs b/src/re_trait.rs
index ea6be9c..680aa54 100644
--- a/src/re_trait.rs
+++ b/src/re_trait.rs
@@ -30,7 +30,7 @@
/// Creates an iterator of all the capture group positions in order of
/// appearance in the regular expression. Positions are byte indices
/// in terms of the original string matched.
- pub fn iter(&self) -> SubCapturesPosIter {
+ pub fn iter(&self) -> SubCapturesPosIter<'_> {
SubCapturesPosIter { idx: 0, locs: self }
}
@@ -138,13 +138,13 @@
/// Returns an iterator over all non-overlapping successive leftmost-first
/// matches.
- fn find_iter(self, text: &Self::Text) -> Matches<Self> {
+ fn find_iter(self, text: &Self::Text) -> Matches<'_, Self> {
Matches { re: self, text: text, last_end: 0, last_match: None }
}
/// Returns an iterator over all non-overlapping successive leftmost-first
/// matches with captures.
- fn captures_iter(self, text: &Self::Text) -> CaptureMatches<Self> {
+ fn captures_iter(self, text: &Self::Text) -> CaptureMatches<'_, Self> {
CaptureMatches(self.find_iter(text))
}
}