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
     --> tests/test_autotrait.rs:1:20
      |
    1 | fn assert_send_sync<T: Send + Sync>() {}
      |                    ^^^^^^^^^^^^^^^^
      |
      = 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 7fd09f7 commit 7c5eea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_autotrait.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::extra_unused_type_parameters)]

fn assert_send_sync<T: Send + Sync>() {}

#[test]
Expand Down

0 comments on commit 7c5eea4

Please sign in to comment.