Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 7f185bd
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Dec 30, 2023
1 parent d2d9c10 commit 1ba1571
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,21 @@
"applicability": "Unresolved"
}
},
{
"id": "empty_enum_variants_with_brackets",
"id_span": {
"path": "src/empty_with_brackets.rs",
"line": 54
},
"group": "restriction",
"level": "allow",
"docs": "\n### What it does\nFinds enum variants without fields that are declared with empty brackets.\n\n### Why is this bad?\nEmpty brackets while defining enum variants are redundant and can be omitted.\n\n### Example\n```rust\nenum MyEnum {\n HasData(u8),\n HasNoData(), // redundant parentheses\n}\n```\n\nUse instead:\n```rust\nenum MyEnum {\n HasData(u8),\n HasNoData,\n}\n```",
"version": "1.77.0",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "MaybeIncorrect"
}
},
{
"id": "empty_line_after_doc_comments",
"id_span": {
Expand Down Expand Up @@ -1789,7 +1804,7 @@
{
"id": "empty_structs_with_brackets",
"id_span": {
"path": "src/empty_structs_with_brackets.rs",
"path": "src/empty_with_brackets.rs",
"line": 26
},
"group": "restriction",
Expand Down

0 comments on commit 1ba1571

Please sign in to comment.