IgnoredAny::visit_enum for old compilers

This commit is contained in:
David Tolnay
2019-06-27 10:45:18 -07:00
parent e75efbfd31
commit 15ee353488
+1 -2
View File
@@ -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()
} }
} }