Skip to content

Commit d30b027

Browse files
committed
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`
1 parent 2c2803f commit d30b027

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
clippy::enum_glob_use,
221221
clippy::explicit_auto_deref,
222222
clippy::extra_unused_type_parameters,
223+
clippy::let_underscore_untyped,
223224
clippy::missing_errors_doc,
224225
clippy::missing_panics_doc,
225226
clippy::module_name_repetitions,

tests/test_backtrace.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::let_underscore_untyped)]
2+
13
#[rustversion::not(nightly)]
24
#[ignore]
35
#[test]

tests/test_ensure.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
clippy::ifs_same_cond,
77
clippy::items_after_statements,
88
clippy::let_and_return,
9+
clippy::let_underscore_untyped,
910
clippy::match_bool,
1011
clippy::never_loop,
1112
clippy::overly_complex_bool_expr,

0 commit comments

Comments
 (0)