Skip to content

Commit

Permalink
Ignore extra_unused_type_parameters clippy lint
Browse files Browse the repository at this point in the history
    error: type parameter goes unused in function definition
       --> src/any.rs:124:23
        |
    124 |     fn invalid_cast_to<T>(&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<T: ?Sized + serde::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<T>()
      |                                     ^^^
      |
      = 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<T: serde::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

    error: type parameter goes unused in function definition
        --> src/ser.rs:1496:18
         |
    1496 |         fn assert<T: serde::Serializer>() {}
         |                  ^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: consider removing the parameter
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
  • Loading branch information
dtolnay committed Feb 11, 2023
1 parent 7cbcc41 commit 5d1c620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d1c620

Please sign in to comment.