mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-15 12:01:01 +00:00
IgnoredAny::visit_enum for old compilers
This commit is contained in:
@@ -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