Skip to content

Commit

Permalink
fix: Clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Mar 26, 2022
1 parent 5883e68 commit d0e0594
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion codegen/src/generate/into/normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion codegen/src/generate/merge/borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion codegen/src/generate/merge/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d0e0594

Please sign in to comment.