unused_result_ok: added in Clippy 1.82.0, not 1.70.0

This commit is contained in:
Samuel Tardieu 2024-10-05 23:49:12 +02:00
parent 753629bb33
commit 0596a04bf4

View File

@ -26,7 +26,7 @@
/// # fn some_function() -> Result<(), ()> { Ok(()) }
/// let _ = some_function();
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.82.0"]
pub UNUSED_RESULT_OK,
restriction,
"Use of `.ok()` to silence `Result`'s `#[must_use]` is misleading. Use `let _ =` instead."