Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 5ead90f
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Aug 6, 2024
1 parent 6e976a6 commit bc2f29e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -10603,6 +10603,21 @@
"applicability": "Unresolved"
}
},
{
"id": "unused_result_ok",
"id_span": {
"path": "src/unused_result_ok.rs",
"line": 30
},
"group": "restriction",
"level": "allow",
"docs": "\n### What it does\nChecks for calls to `Result::ok()` without using the returned `Option`.\n\n### Why is this bad?\nUsing `Result::ok()` may look like the result is checked like `unwrap` or `expect` would do\nbut it only silences the warning caused by `#[must_use]` on the `Result`.\n\n### Example\n ```rust\nsome_function().ok();\n```\nUse instead:\n ```rust\nlet _ = some_function();\n```",
"version": "1.70.0",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "MaybeIncorrect"
}
},
{
"id": "unused_rounding",
"id_span": {
Expand Down

0 comments on commit bc2f29e

Please sign in to comment.