Skip to content

Commit

Permalink
Auto merge of rust-lang#13506 - samueltardieu:push-zyqvkwlswvkk, r=xF…
Browse files Browse the repository at this point in the history
…rednet

unused_result_ok: added in Clippy 1.82.0, not 1.70.0

changelog: none

Fix rust-lang#13497
  • Loading branch information
bors committed Oct 6, 2024
2 parents 2d2e8cc + 0596a04 commit f7aaecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unused_result_ok.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare_clippy_lint! {
/// # 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."
Expand Down

0 comments on commit f7aaecf

Please sign in to comment.