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.
match_same_arms
1 parent 45bb75b commit 8bfe38cCopy full SHA for 8bfe38c
src/copies.rs
@@ -38,7 +38,9 @@ declare_lint! {
38
39
/// **What it does:** This lint checks for `match` with identical arm bodies.
40
///
41
-/// **Why is this bad?** This is probably a copy & paste error.
+/// **Why is this bad?** This is probably a copy & paste error. If arm bodies are the same on
42
+/// purpose, you can factor them
43
+/// [using `|`](https://doc.rust-lang.org/book/patterns.html#multiple-patterns).
44
45
/// **Known problems:** Hopefully none.
46
0 commit comments