Skip to content

Commit d768fe8

Browse files
committed
Fix link in trivial_regex
1 parent 6d3db72 commit d768fe8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clippy_lints/src/regex.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ declare_lint! {
2929
"invalid regular expressions"
3030
}
3131

32-
/// **What it does:** Checks for trivial [regex] creation (with `Regex::new`,
33-
/// `RegexBuilder::new` or `RegexSet::new`).
34-
///
35-
/// [regex]: https://crates.io/crates/regex
32+
/// **What it does:** Checks for trivial [regex](https://crates.io/crates/regex)
33+
/// creation (with `Regex::new`, `RegexBuilder::new` or `RegexSet::new`).
3634
///
3735
/// **Why is this bad?** Matching the regex can likely be replaced by `==` or
3836
/// `str::starts_with`, `str::ends_with` or `std::contains` or other `str`

0 commit comments

Comments
 (0)