Skip to content

Commit

Permalink
Ignore extra_unused_type_parameters clippy lint in test
Browse files Browse the repository at this point in the history
    error: type parameter goes unused in function definition
       --> test_suite/tests/test_gen.rs:756:10
        |
    756 | fn assert<T: Serialize + DeserializeOwned>() {}
        |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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
       --> test_suite/tests/test_gen.rs:757:14
        |
    757 | fn assert_ser<T: 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
      --> test_suite/tests/test_serde_path.rs:20:18
       |
    20 |     pub fn assert<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
       = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`
  • Loading branch information
dtolnay committed Feb 11, 2023
1 parent 35e5cf3 commit a9a9903
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions test_suite/tests/test_gen.rs
Expand Up @@ -7,6 +7,7 @@
unknown_lints,
mixed_script_confusables,
clippy::derive_partial_eq_without_eq,
clippy::extra_unused_type_parameters,
clippy::items_after_statements,
clippy::missing_errors_doc,
clippy::missing_panics_doc,
Expand Down
5 changes: 4 additions & 1 deletion test_suite/tests/test_serde_path.rs
@@ -1,4 +1,7 @@
#![allow(clippy::type_repetition_in_bounds)]
#![allow(
clippy::extra_unused_type_parameters,
clippy::type_repetition_in_bounds
)]

#[test]
fn test_gen_custom_serde() {
Expand Down

0 comments on commit a9a9903

Please sign in to comment.