unused_result_ok: added in Clippy 1.82.0, not 1.70.0
This commit is contained in:
parent
753629bb33
commit
0596a04bf4
@ -26,7 +26,7 @@
|
|||||||
/// # fn some_function() -> Result<(), ()> { Ok(()) }
|
/// # fn some_function() -> Result<(), ()> { Ok(()) }
|
||||||
/// let _ = some_function();
|
/// let _ = some_function();
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.70.0"]
|
#[clippy::version = "1.82.0"]
|
||||||
pub UNUSED_RESULT_OK,
|
pub UNUSED_RESULT_OK,
|
||||||
restriction,
|
restriction,
|
||||||
"Use of `.ok()` to silence `Result`'s `#[must_use]` is misleading. Use `let _ =` instead."
|
"Use of `.ok()` to silence `Result`'s `#[must_use]` is misleading. Use `let _ =` instead."
|
||||||
|
Loading…
Reference in New Issue
Block a user