From 2364d0aa06e66f6f4533f3c7390d64cc85f205d5 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Sun, 3 Mar 2024 22:56:32 +0100 Subject: [PATCH] Apply `clippy` suggested fixes to `src/derive.rs` --- src/derive.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/derive.rs b/src/derive.rs index f8630d6..55a2dd1 100644 --- a/src/derive.rs +++ b/src/derive.rs @@ -63,7 +63,7 @@ pub trait WrapperType { fn derive(trait_: &syn::ItemTrait) -> syn::Result { // build an identifier for the generic type used for the implementation let trait_ident = &trait_.ident; - let generic_type = trait_to_generic_ident(&trait_); + let generic_type = trait_to_generic_ident(trait_); let wrapper_type = Self::wrap(&generic_type); // build the generics for the impl block: @@ -85,7 +85,7 @@ pub trait WrapperType { if let syn::TraitItem::Fn(ref m) = item { methods.push(Self::derive_method( m, - &trait_ident, + trait_ident, &generic_type, &trait_generic_names, )?) @@ -167,9 +167,9 @@ pub trait WrapperType { } else { let call = signature_to_associated_function_call( &m.sig, - &trait_ident, - &generic_type, - &trait_generic_names, + trait_ident, + generic_type, + trait_generic_names, )?; call.into() };