Skip to content

Commit 657dab8

Browse files
committed
fixup! More generic impl of Replacer for closures
Removed unnecessary import of `Replacer` in doc test.
1 parent 2c8c8dd commit 657dab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/regex/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2452,7 +2452,7 @@ use replacer_closure::*;
24522452
/// [closure lifetime binders]: https://rust-lang.github.io/rfcs/3216-closure-lifetime-binder.html
24532453
///
24542454
/// ```
2455-
/// use regex::{Captures, Regex, Replacer};
2455+
/// use regex::{Captures, Regex};
24562456
/// use std::borrow::Cow;
24572457
///
24582458
/// fn coerce<F: for<'a> FnMut(&'a Captures<'_>) -> Cow<'a, str>>(f: F) -> F {

0 commit comments

Comments
 (0)