Skip to content

Commit

Permalink
IgnoredAny::visit_enum for old compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 27, 2019
1 parent e75efbf commit 15ee353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions serde/src/de/ignored_any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 15ee353

Please sign in to comment.