mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Remove "a" from single_match_else description
This commit is contained in:
parent
348d398b1c
commit
a68abc03a2
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ declare_clippy_lint! {
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
/// **What it does:** Checks for matches with a two arms where an `if let else` will
|
/// **What it does:** Checks for matches with two arms where an `if let else` will
|
||||||
/// usually suffice.
|
/// usually suffice.
|
||||||
///
|
///
|
||||||
/// **Why is this bad?** Just readability – `if let` nests less than a `match`.
|
/// **Why is this bad?** Just readability – `if let` nests less than a `match`.
|
||||||
|
@ -76,7 +76,7 @@ declare_clippy_lint! {
|
||||||
/// ```
|
/// ```
|
||||||
pub SINGLE_MATCH_ELSE,
|
pub SINGLE_MATCH_ELSE,
|
||||||
pedantic,
|
pedantic,
|
||||||
"a match statement with a two arms where the second arm's pattern is a placeholder instead of a specific match pattern"
|
"a match statement with two arms where the second arm's pattern is a placeholder instead of a specific match pattern"
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
|
|
|
@ -1676,7 +1676,7 @@ pub const ALL_LINTS: [Lint; 309] = [
|
||||||
Lint {
|
Lint {
|
||||||
name: "single_match_else",
|
name: "single_match_else",
|
||||||
group: "pedantic",
|
group: "pedantic",
|
||||||
desc: "a match statement with a two arms where the second arm\'s pattern is a placeholder instead of a specific match pattern",
|
desc: "a match statement with two arms where the second arm\'s pattern is a placeholder instead of a specific match pattern",
|
||||||
deprecation: None,
|
deprecation: None,
|
||||||
module: "matches",
|
module: "matches",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue