Skip to content

Commit 0aa891a

Browse files
committed
Auto merge of #317 - BurntSushi:fixes, r=BurntSushi
Fixes for #312 and #316
2 parents fc639cf + c4d7fa9 commit 0aa891a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Breaking changes for the regex API:
5252
* The `RegexBuilder` type has switched from owned `self` method receivers to
5353
`&mut self` method receivers. Most uses will continue to work unchanged, but
5454
some code may require naming an intermediate variable to hold the builder.
55+
* The `compile` method on `RegexBuilder` has been renamed to `build`.
5556
* The free `is_match` function has been removed. It is replaced by compiling
5657
a `Regex` and calling its `is_match` method.
5758
* The `PartialEq` and `Eq` impls on `Regex` have been dropped. If you relied

src/re_bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,9 @@ impl<F> Replacer for F where F: FnMut(&Captures) -> Vec<u8> {
991991
/// and performant (since capture groups don't need to be found).
992992
///
993993
/// `'t` is the lifetime of the literal text.
994-
pub struct NoExpand<'r>(pub &'r [u8]);
994+
pub struct NoExpand<'t>(pub &'t [u8]);
995995

996-
impl<'a> Replacer for NoExpand<'a> {
996+
impl<'t> Replacer for NoExpand<'t> {
997997
fn replace_append(&mut self, _: &Captures, dst: &mut Vec<u8>) {
998998
dst.extend_from_slice(self.0);
999999
}

src/re_unicode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1190,9 +1190,9 @@ impl<F> Replacer for F where F: FnMut(&Captures) -> String {
11901190
/// and performant (since capture groups don't need to be found).
11911191
///
11921192
/// `'t` is the lifetime of the literal text.
1193-
pub struct NoExpand<'r>(pub &'r str);
1193+
pub struct NoExpand<'t>(pub &'t str);
11941194

1195-
impl<'a> Replacer for NoExpand<'a> {
1195+
impl<'t> Replacer for NoExpand<'t> {
11961196
fn replace_append(&mut self, _: &Captures, dst: &mut String) {
11971197
dst.push_str(self.0);
11981198
}

0 commit comments

Comments
 (0)