Skip to content

Commit

Permalink
Apply clippy suggested fixes to src/derive.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Mar 3, 2024
1 parent b70d3de commit 2364d0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub trait WrapperType {
fn derive(trait_: &syn::ItemTrait) -> syn::Result<syn::ItemImpl> {
// 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:
Expand All @@ -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,
)?)
Expand Down Expand Up @@ -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()
};
Expand Down

0 comments on commit 2364d0a

Please sign in to comment.