We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3db72 commit d768fe8Copy full SHA for d768fe8
clippy_lints/src/regex.rs
@@ -29,10 +29,8 @@ declare_lint! {
29
"invalid regular expressions"
30
}
31
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
+/// **What it does:** Checks for trivial [regex](https://crates.io/crates/regex)
+/// creation (with `Regex::new`, `RegexBuilder::new` or `RegexSet::new`).
36
///
37
/// **Why is this bad?** Matching the regex can likely be replaced by `==` or
38
/// `str::starts_with`, `str::ends_with` or `std::contains` or other `str`
0 commit comments