Don't treat literal "null" as JSON

Reverts part of 7972453e9107d9439e90bf1661538c7b935c3ebb
This commit is contained in:
Jonas Platte 2020-04-29 10:56:45 +02:00
parent a3787cf3b9
commit 1a00c1d386
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -233,12 +233,8 @@ impl<'de> de::Deserializer<'de> for Part<'de> {
where
V: de::Visitor<'de>,
{
if self.0 == "null" {
visitor.visit_none()
} else {
visitor.visit_some(self)
}
}
fn deserialize_enum<V>(
self,