Skip to content

Commit 2fdfc10

Browse files
committed
Fix clippy
Suppress the extra_unused_type_parameters in a test, where it's intentional.
1 parent 1b94d9c commit 2fdfc10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mockall/tests/automock_generic_method_without_generic_args_or_return.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ pub struct Foo{}
1010

1111
#[automock]
1212
impl Foo {
13+
#[allow(clippy::extra_unused_type_parameters)]
1314
pub fn foo<T: 'static>(&self) -> i32 {
1415
unimplemented!()
1516
}
1617
/// A static method
18+
#[allow(clippy::extra_unused_type_parameters)]
1719
pub fn bar<T: 'static>() -> i32 {
1820
unimplemented!()
1921
}

0 commit comments

Comments
 (0)