mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 09:17:57 +00:00
IgnoredAny::visit_enum for old compilers
This commit is contained in:
@@ -212,8 +212,7 @@ impl<'de> Visitor<'de> for IgnoredAny {
|
||||
where
|
||||
A: EnumAccess<'de>,
|
||||
{
|
||||
let (IgnoredAny, content) = data.variant()?;
|
||||
content.newtype_variant()
|
||||
data.variant::<IgnoredAny>()?.1.newtype_variant()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user