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.
2 parents 786f090 + be09596 commit aef4772Copy full SHA for aef4772
clippy_lints/src/regex.rs
@@ -24,6 +24,11 @@ declare_clippy_lint! {
24
/// ```ignore
25
/// Regex::new("(")
26
/// ```
27
+ ///
28
+ /// Use instead:
29
+ /// ```ignore
30
+ /// Regex::new("\(")
31
+ /// ```
32
#[clippy::version = "pre 1.29.0"]
33
pub INVALID_REGEX,
34
correctness,
@@ -49,6 +54,11 @@ declare_clippy_lint! {
49
54
50
55
/// Regex::new("^foobar")
51
56
57
58
59
60
+ /// str::starts_with("foobar")
61
52
62
53
63
pub TRIVIAL_REGEX,
64
nursery,
0 commit comments