From 02c34e490b6886ee65c2032939239e25540af7c2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 30 Jul 2023 16:07:17 -0700 Subject: [PATCH] Resolve redundant_field_names clippy lint from PR 2448 warning: redundant field names in struct initialization --> serde/src/private/ser.rs:1278:13 | 1278 | map: map, | ^^^^^^^^ help: replace it with: `map` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names = note: `-W clippy::redundant-field-names` implied by `-W clippy::all` --- serde/src/private/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde/src/private/ser.rs b/serde/src/private/ser.rs index a73f259b..12259894 100644 --- a/serde/src/private/ser.rs +++ b/serde/src/private/ser.rs @@ -1275,7 +1275,7 @@ where { fn new(map: &'a mut M) -> Self { FlatMapSerializeTupleVariantAsMapValue { - map: map, + map, fields: Vec::new(), } }