We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3fb68 commit e5cdfccCopy full SHA for e5cdfcc
src/de.rs
@@ -2184,10 +2184,18 @@ where
2184
}
2185
2186
#[inline]
2187
- fn deserialize_newtype_struct<V>(self, _name: &'static str, visitor: V) -> Result<V::Value>
+ fn deserialize_newtype_struct<V>(self, name: &'static str, visitor: V) -> Result<V::Value>
2188
where
2189
V: de::Visitor<'de>,
2190
{
2191
+ #[cfg(feature = "raw_value")]
2192
+ {
2193
+ if name == crate::raw::TOKEN {
2194
+ return self.de.deserialize_raw_value(visitor);
2195
+ }
2196
2197
+
2198
+ let _ = name;
2199
visitor.visit_newtype_struct(self)
2200
2201
0 commit comments