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 988042e commit be09596Copy full SHA for be09596
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