From d30b027581fcbd2f2a080fd8d4f31c4749d3d5fe Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 26 Feb 2023 21:42:39 -0700 Subject: [PATCH] Ignore let_underscore_untyped pedantic clippy lint error: non-binding `let` without a type annotation --> src/error.rs:618:5 | 618 | let _ = target; | ^^^^^^^^^^^^^^^ | = help: consider adding a type annotation or removing the `let` keyword = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic` error: non-binding `let` without a type annotation --> tests/test_backtrace.rs:12:5 | 12 | let _ = error.backtrace(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider adding a type annotation or removing the `let` keyword = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic` error: non-binding `let` without a type annotation --> tests/test_ensure.rs:35:9 | 35 | let _ = rhs; | ^^^^^^^^^^^^ | = help: consider adding a type annotation or removing the `let` keyword = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic` --- src/lib.rs | 1 + tests/test_backtrace.rs | 2 ++ tests/test_ensure.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8fff856..e95962a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -220,6 +220,7 @@ clippy::enum_glob_use, clippy::explicit_auto_deref, clippy::extra_unused_type_parameters, + clippy::let_underscore_untyped, clippy::missing_errors_doc, clippy::missing_panics_doc, clippy::module_name_repetitions, diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index ce385f5..c89559e 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -1,3 +1,5 @@ +#![allow(clippy::let_underscore_untyped)] + #[rustversion::not(nightly)] #[ignore] #[test] diff --git a/tests/test_ensure.rs b/tests/test_ensure.rs index 46036c6..0814832 100644 --- a/tests/test_ensure.rs +++ b/tests/test_ensure.rs @@ -6,6 +6,7 @@ clippy::ifs_same_cond, clippy::items_after_statements, clippy::let_and_return, + clippy::let_underscore_untyped, clippy::match_bool, clippy::never_loop, clippy::overly_complex_bool_expr,