]> git.proxmox.com Git - perlmod.git/commitdiff
fix newtype struct deserialization
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 Jun 2021 08:58:21 +0000 (10:58 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 Jun 2021 08:58:21 +0000 (10:58 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
perlmod/src/de.rs

index fbaeaf7069b1a638e8887899d8f59897426521a5..a9a7f550a7effb13150a18aab7ae85476d57ef0c 100644 (file)
@@ -419,7 +419,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
     where
         V: Visitor<'de>,
     {
-        self.deserialize_any(visitor)
+        visitor.visit_newtype_struct(self)
     }
 
     fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Error>