From bc2f29edb16691965434a10c03aedb0b617c0e86 Mon Sep 17 00:00:00 2001 From: GHA CI Date: Tue, 6 Aug 2024 19:11:01 +0000 Subject: [PATCH] Automatic deploy to GitHub Pages: 5ead90f13ae3e03f0c346aea3198f18298960d83 --- master/lints.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/master/lints.json b/master/lints.json index 0fd5dce84..13904e0ec 100644 --- a/master/lints.json +++ b/master/lints.json @@ -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": {