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`
This commit is contained in:
David Tolnay 2023-07-30 16:07:17 -07:00
parent 427c839b3d
commit 02c34e490b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1275,7 +1275,7 @@ where
{
fn new(map: &'a mut M) -> Self {
FlatMapSerializeTupleVariantAsMapValue {
map: map,
map,
fields: Vec::new(),
}
}