From d0e059409e683054941b6e7b4c331d4b40f372b6 Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Sun, 27 Mar 2022 00:18:29 +0100 Subject: [PATCH] fix: Clippy issues --- codegen/src/generate/into/normal.rs | 2 +- codegen/src/generate/merge/borrowed.rs | 2 +- codegen/src/generate/merge/owned.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/src/generate/into/normal.rs b/codegen/src/generate/into/normal.rs index ee97f80..a96598e 100644 --- a/codegen/src/generate/into/normal.rs +++ b/codegen/src/generate/into/normal.rs @@ -12,7 +12,7 @@ pub(crate) fn impl_into(params: &Parameters, fields: Vec<(Field, Field)>) -> Tok let mut functions_tokens = TokenStream::new(); // Add `merge_ref` impl. - let stream = merge_ref(params, fields.clone()); + let stream = merge_ref(params, fields); functions_tokens.extend(vec![stream]); // Surround functions with `impl` block. diff --git a/codegen/src/generate/merge/borrowed.rs b/codegen/src/generate/merge/borrowed.rs index 7d6ea31..8f4f8da 100644 --- a/codegen/src/generate/merge/borrowed.rs +++ b/codegen/src/generate/merge/borrowed.rs @@ -12,7 +12,7 @@ pub(crate) fn impl_borrowed(params: &Parameters, fields: Vec<(Field, Field)>) -> let mut functions_tokens = TokenStream::new(); // Add `merge_ref` impl. - let stream = merge_ref(params, fields.clone()); + let stream = merge_ref(params, fields); functions_tokens.extend(vec![stream]); // Surround functions with `impl` block. diff --git a/codegen/src/generate/merge/owned.rs b/codegen/src/generate/merge/owned.rs index ec49274..e68e529 100644 --- a/codegen/src/generate/merge/owned.rs +++ b/codegen/src/generate/merge/owned.rs @@ -12,7 +12,7 @@ pub(crate) fn impl_owned(params: &Parameters, fields: Vec<(Field, Field)>) -> To let mut functions_tokens = TokenStream::new(); // Add `merge` impl. - let stream = merge(params, fields.clone()); + let stream = merge(params, fields); functions_tokens.extend(vec![stream]); // Surround functions with `impl` block.