Fix rustc 1.32 build
This commit is contained in:
parent
70b5a1a2e6
commit
631120ead8
1 changed files with 4 additions and 4 deletions
|
@ -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)?)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue