From 5d1c620afc45e9d212f46b594cb768a226839647 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 10 Feb 2023 19:11:02 -0800 Subject: [PATCH] Ignore extra_unused_type_parameters clippy lint error: type parameter goes unused in function definition --> src/any.rs:124:23 | 124 | fn invalid_cast_to(&self) -> ! { | ^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all` error: type parameter goes unused in function definition --> src/de.rs:1530:24 | 1530 | fn assert<'de, T: serde::Deserializer<'de>>() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> src/macros.rs:124:24 | 124 | fn assert_serialize() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all` error: type parameter goes unused in function definition --> src/private.rs:7:37 | 7 | pub fn require_erased_serialize_impl() | ^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> src/ser.rs:1475:18 | 1475 | fn assert() {} | ^^^^^^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> src/ser.rs:1496:18 | 1496 | fn assert() {} | ^^^^^^^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 114a14b..ba16950 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -101,6 +101,7 @@ #![cfg_attr(no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))] #![allow( clippy::derive_partial_eq_without_eq, + clippy::extra_unused_type_parameters, clippy::items_after_statements, clippy::manual_map, // https://github.com/rust-lang/rust-clippy/issues/7820 clippy::missing_errors_doc,