mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 07:34:18 +00:00
Fix link in trivial_regex
This commit is contained in:
parent
6d3db724b7
commit
d768fe8c16
1 changed files with 2 additions and 4 deletions
|
@ -29,10 +29,8 @@ declare_lint! {
|
|||
"invalid regular expressions"
|
||||
}
|
||||
|
||||
/// **What it does:** Checks for trivial [regex] creation (with `Regex::new`,
|
||||
/// `RegexBuilder::new` or `RegexSet::new`).
|
||||
///
|
||||
/// [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`).
|
||||
///
|
||||
/// **Why is this bad?** Matching the regex can likely be replaced by `==` or
|
||||
/// `str::starts_with`, `str::ends_with` or `std::contains` or other `str`
|
||||
|
|
Loading…
Reference in a new issue