Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Suppress the extra_unused_type_parameters in a test, where it's
intentional.
  • Loading branch information
asomers committed Mar 26, 2023
1 parent 1b94d9c commit 2fdfc10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ pub struct Foo{}

#[automock]
impl Foo {
#[allow(clippy::extra_unused_type_parameters)]
pub fn foo<T: 'static>(&self) -> i32 {
unimplemented!()
}
/// A static method
#[allow(clippy::extra_unused_type_parameters)]
pub fn bar<T: 'static>() -> i32 {
unimplemented!()
}
Expand Down

0 comments on commit 2fdfc10

Please sign in to comment.