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.