125: Deserialize maps as maps r=japaric a=dflemstr

The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: https://github.com/japaric/serde-json-core/pull/23)

Co-authored-by: David Flemström <david.flemstrom@gmail.com>
This commit is contained in:
bors[bot] 2019-12-17 11:29:41 +00:00 committed by GitHub
commit 06431e7397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ where
Ok(values)
}
}
deserializer.deserialize_seq(ValueVisitor(PhantomData))
deserializer.deserialize_map(ValueVisitor(PhantomData))
}
}
@ -225,7 +225,7 @@ where
Ok(values)
}
}
deserializer.deserialize_seq(ValueVisitor(PhantomData))
deserializer.deserialize_map(ValueVisitor(PhantomData))
}
}