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(), } }