From e19844c659a35c10e957611c9628ace4205aee70 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 22 Nov 2022 19:04:23 -0800 Subject: [PATCH] Fix renamed let_underscore_drop lint warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop` --> serde_derive/src/lib.rs:46:5 | 46 | clippy::let_underscore_drop, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop` | = note: `#[warn(renamed_and_removed_lints)]` on by default --- .github/workflows/ci.yml | 6 +++--- serde/src/lib.rs | 1 - serde_derive/src/lib.rs | 1 - serde_derive_internals/lib.rs | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3462deb..6c66b471 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,11 +167,11 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@clippy - - run: cd serde && cargo clippy --features rc,unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::let_underscore_drop + - run: cd serde && cargo clippy --features rc,unstable -- -Dclippy::all -Dclippy::pedantic - run: cd serde_derive && cargo clippy -- -Dclippy::all -Dclippy::pedantic - run: cd serde_derive_internals && cargo clippy -- -Dclippy::all -Dclippy::pedantic - - run: cd serde_test && cargo clippy -- -Dclippy::all -Dclippy::pedantic -Aclippy::let_underscore_drop - - run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::let_underscore_drop + - run: cd serde_test && cargo clippy -- -Dclippy::all -Dclippy::pedantic + - run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Dclippy::pedantic - run: cd test_suite/no_std && cargo clippy -- -Dclippy::all -Dclippy::pedantic miri: diff --git a/serde/src/lib.rs b/serde/src/lib.rs index d751260d..9bfbd37a 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -118,7 +118,6 @@ derive_partial_eq_without_eq, enum_glob_use, explicit_auto_deref, - let_underscore_drop, map_err_ignore, new_without_default, result_unit_err, diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index fc8529e4..02850aa1 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -43,7 +43,6 @@ clippy::enum_glob_use, clippy::indexing_slicing, clippy::items_after_statements, - clippy::let_underscore_drop, clippy::manual_assert, clippy::map_err_ignore, clippy::match_same_arms, diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index c00fe5a6..cc1c1929 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -22,7 +22,6 @@ clippy::doc_markdown, clippy::enum_glob_use, clippy::items_after_statements, - clippy::let_underscore_drop, clippy::manual_assert, clippy::match_same_arms, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6984