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/macros.rs:3:16
      |
    3 | fn assert_clone<T: Clone>() {}
      |                ^^^^^^^^^^
      |
      = 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 fb089f6 commit 6586d8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::extra_unused_type_parameters)]

use dyn_clone::{clone_trait_object, DynClone};

fn assert_clone<T: Clone>() {}
Expand Down

0 comments on commit 6586d8f

Please sign in to comment.