From 2fdfc10e075c2dbd9ef112446fa7418f647c7235 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 14 Feb 2023 11:59:05 -0700 Subject: [PATCH] Fix clippy Suppress the extra_unused_type_parameters in a test, where it's intentional. --- .../automock_generic_method_without_generic_args_or_return.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mockall/tests/automock_generic_method_without_generic_args_or_return.rs b/mockall/tests/automock_generic_method_without_generic_args_or_return.rs index 4d8d4443..63b297bb 100644 --- a/mockall/tests/automock_generic_method_without_generic_args_or_return.rs +++ b/mockall/tests/automock_generic_method_without_generic_args_or_return.rs @@ -10,10 +10,12 @@ pub struct Foo{} #[automock] impl Foo { + #[allow(clippy::extra_unused_type_parameters)] pub fn foo(&self) -> i32 { unimplemented!() } /// A static method + #[allow(clippy::extra_unused_type_parameters)] pub fn bar() -> i32 { unimplemented!() }