File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ Breaking changes for the regex API:
52
52
* The ` RegexBuilder ` type has switched from owned ` self ` method receivers to
53
53
` &mut self ` method receivers. Most uses will continue to work unchanged, but
54
54
some code may require naming an intermediate variable to hold the builder.
55
+ * The ` compile ` method on ` RegexBuilder ` has been renamed to ` build ` .
55
56
* The free ` is_match ` function has been removed. It is replaced by compiling
56
57
a ` Regex ` and calling its ` is_match ` method.
57
58
* The ` PartialEq ` and ` Eq ` impls on ` Regex ` have been dropped. If you relied
Original file line number Diff line number Diff line change @@ -991,9 +991,9 @@ impl<F> Replacer for F where F: FnMut(&Captures) -> Vec<u8> {
991
991
/// and performant (since capture groups don't need to be found).
992
992
///
993
993
/// `'t` is the lifetime of the literal text.
994
- pub struct NoExpand < ' r > ( pub & ' r [ u8 ] ) ;
994
+ pub struct NoExpand < ' t > ( pub & ' t [ u8 ] ) ;
995
995
996
- impl < ' a > Replacer for NoExpand < ' a > {
996
+ impl < ' t > Replacer for NoExpand < ' t > {
997
997
fn replace_append ( & mut self , _: & Captures , dst : & mut Vec < u8 > ) {
998
998
dst. extend_from_slice ( self . 0 ) ;
999
999
}
Original file line number Diff line number Diff line change @@ -1190,9 +1190,9 @@ impl<F> Replacer for F where F: FnMut(&Captures) -> String {
1190
1190
/// and performant (since capture groups don't need to be found).
1191
1191
///
1192
1192
/// `'t` is the lifetime of the literal text.
1193
- pub struct NoExpand < ' r > ( pub & ' r str ) ;
1193
+ pub struct NoExpand < ' t > ( pub & ' t str ) ;
1194
1194
1195
- impl < ' a > Replacer for NoExpand < ' a > {
1195
+ impl < ' t > Replacer for NoExpand < ' t > {
1196
1196
fn replace_append ( & mut self , _: & Captures , dst : & mut String ) {
1197
1197
dst. push_str ( self . 0 ) ;
1198
1198
}
You can’t perform that action at this time.
0 commit comments