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_from.rs:51:15
       |
    51 | fn assert_impl<T: From<io::Error>>() {}
       |               ^^^^^^^^^^^^^^^^^^^^
       |
       = 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 0d23ebc commit 920ad73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_from.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::extra_unused_type_parameters)]

use std::io;
use thiserror::Error;

Expand Down

0 comments on commit 920ad73

Please sign in to comment.