Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 279127c
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Oct 6, 2023
1 parent c129b3a commit 9ffb354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -3356,15 +3356,15 @@
"id": "items_after_test_module",
"id_span": {
"path": "src/items_after_test_module.rs",
"line": 37
"line": 39
},
"group": "style",
"level": "warn",
"docs": "\n### What it does\nTriggers if an item is declared after the testing module marked with `#[cfg(test)]`.\n### Why is this bad?\nHaving items declared after the testing module is confusing and may lead to bad test coverage.\n### Example\n```rust\n#[cfg(test)]\nmod tests {\n // [...]\n}\n\nfn my_function() {\n // [...]\n}\n```\nUse instead:\n```rust\nfn my_function() {\n // [...]\n}\n\n#[cfg(test)]\nmod tests {\n // [...]\n}\n```",
"version": "1.71.0",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "Unresolved"
"applicability": "MachineApplicable"
}
},
{
Expand Down

0 comments on commit 9ffb354

Please sign in to comment.