mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-21 11:16:29 +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
|
||||
A: EnumAccess<'de>,
|
||||
{
|
||||
let (IgnoredAny, content) = data.variant()?;
|
||||
content.newtype_variant()
|
||||
data.variant::<IgnoredAny>()?.1.newtype_variant()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user