Skip to content

Commit 71da2aa

Browse files
committed
Remove redundant field names
clippy emits two warnings of form: warning: redundant field names in struct initialization Remove the redundant field names.
1 parent 83c3ddb commit 71da2aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ macro_rules! serde_struct_human_string_impl {
276276
)*
277277

278278
let ret = $name {
279-
$($fe: $fe),*
279+
$($fe),*
280280
};
281281

282282
Ok(ret)
@@ -312,7 +312,7 @@ macro_rules! serde_struct_human_string_impl {
312312
)*
313313

314314
let ret = $name {
315-
$($fe: $fe),*
315+
$($fe),*
316316
};
317317

318318
Ok(ret)

0 commit comments

Comments
 (0)