From c5d4c0c2350ad599384a94a9dec1c0f080fdc9e5 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Tue, 6 Jul 2021 15:57:08 +0200 Subject: [PATCH] Deserialize undefined as None for Option --- src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de.rs b/src/de.rs index 170e0593..40c25e9f 100644 --- a/src/de.rs +++ b/src/de.rs @@ -794,7 +794,7 @@ where V: de::Visitor<'de>, { match self.peek()? { - Some(0xf6) => { + Some(0xf6) | Some(0xf7) => { self.consume(); visitor.visit_none() }