Skip to content

Commit

Permalink
Remove redundant field names
Browse files Browse the repository at this point in the history
clippy emits two warnings of form:

 warning: redundant field names in struct initialization

Remove the redundant field names.
  • Loading branch information
tcharding committed Jun 23, 2022
1 parent 66c9fed commit 63f4ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal_macros.rs
Expand Up @@ -276,7 +276,7 @@ macro_rules! serde_struct_human_string_impl {
)*

let ret = $name {
$($fe: $fe),*
$($fe),*
};

Ok(ret)
Expand Down Expand Up @@ -312,7 +312,7 @@ macro_rules! serde_struct_human_string_impl {
)*

let ret = $name {
$($fe: $fe),*
$($fe),*
};

Ok(ret)
Expand Down

0 comments on commit 63f4ff6

Please sign in to comment.