Fix rustc 1.32 build

This commit is contained in:
Graham Esau 2020-05-10 22:16:17 +01:00
parent 70b5a1a2e6
commit 631120ead8

View file

@ -36,11 +36,11 @@ impl<'a> FromSerde for Data<'a> {
fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result<Self, ()> {
Ok(match serde {
Self::SerdeType::Enum(variants) => {
Self::Enum(Variant::vec_from_serde(errors, variants)?)
serde_ast::Data::Enum(variants) => {
Data::Enum(Variant::vec_from_serde(errors, variants)?)
}
Self::SerdeType::Struct(style, fields) => {
Self::Struct(style, Field::vec_from_serde(errors, fields)?)
serde_ast::Data::Struct(style, fields) => {
Data::Struct(style, Field::vec_from_serde(errors, fields)?)
}
})
}