Don't treat literal "null" as JSON
Reverts part of 7972453e9107d9439e90bf1661538c7b935c3ebb
This commit is contained in:
parent
a3787cf3b9
commit
1a00c1d386
@ -233,11 +233,7 @@ 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)
|
||||
}
|
||||
visitor.visit_some(self)
|
||||
}
|
||||
|
||||
fn deserialize_enum<V>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user