mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Auto merge of #13506 - samueltardieu:push-zyqvkwlswvkk, r=xFrednet
unused_result_ok: added in Clippy 1.82.0, not 1.70.0 changelog: none Fix #13497
This commit is contained in:
commit
f7aaecf3f5
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ declare_clippy_lint! {
|
||||||
/// # 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…
Add table
Reference in a new issue