Skip to content
Myr

Ignore let_underscore_untyped pedantic clippy lint

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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`

authored by David Tolnay · committed by David Tolnay · parent 2c2803f · Browse files · 3 files+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−0 removed

  • tests:+3 added−0 removed
  • other:+1 added−0 removed

3 files+4 added−0 removed

modified:src/lib.rs+1 added
218 unmodified lines
219 clippy::doc_markdown,220 clippy::enum_glob_use,221 clippy::explicit_auto_deref,222 clippy::extra_unused_type_parameters,223 clippy::let_underscore_untyped,224 clippy::missing_errors_doc,225 clippy::missing_panics_doc,226 clippy::module_name_repetitions,227 clippy::must_use_candidate,
455 unmodified lines
modified:tests/test_backtrace.rs+2 added
1#![allow(clippy::let_underscore_untyped)]23#[rustversion::not(nightly)]4#[ignore]5#[test]6fn test_backtrace() {}
9 unmodified lines
modified:tests/test_ensure.rs+1 added
4 unmodified lines
5 clippy::if_same_then_else,6 clippy::ifs_same_cond,7 clippy::items_after_statements,8 clippy::let_and_return,9 clippy::let_underscore_untyped,10 clippy::match_bool,11 clippy::never_loop,12 clippy::overly_complex_bool_expr,13 clippy::redundant_closure_call,
707 unmodified lines