Skip to content

Commit

Permalink
Resolve redundant_field_names clippy lint from PR 2448
Browse files Browse the repository at this point in the history
    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`
  • Loading branch information
dtolnay committed Jul 30, 2023
1 parent 427c839 commit 02c34e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/private/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ where
{
fn new(map: &'a mut M) -> Self {
FlatMapSerializeTupleVariantAsMapValue {
map: map,
map,
fields: Vec::new(),
}
}
Expand Down

0 comments on commit 02c34e4

Please sign in to comment.