1
Fork 0

Merge remote-tracking branch 'origin/master' into rustup

This commit is contained in:
Oliver Schneider 2017-09-13 15:41:09 +02:00
commit b2c88b0a35
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
3 changed files with 4 additions and 9 deletions

View file

@ -30,10 +30,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`