mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-12-02 02:37:07 +00:00
IgnoredAny::visit_enum for old compilers
This commit is contained in:
1 file changed
+1
-2
@@ -212,8 +212,7 @@ impl<'de> Visitor<'de> for IgnoredAny {
|
|||||||
where
|
where
|
||||||
A: EnumAccess<'de>,
|
A: EnumAccess<'de>,
|
||||||
{
|
{
|
||||||
let (IgnoredAny, content) = data.variant()?;
|
data.variant::<IgnoredAny>()?.1.newtype_variant()
|
||||||
content.newtype_variant()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user