Fix break in quote 0.2.2

This commit is contained in:
David Tolnay 2016-10-03 13:37:46 -07:00
parent 3f28a93240
commit 42987a5b24

View File

@ -651,14 +651,6 @@ fn deserialize_field_visitor(
Some(quote!(__ignore,))
};
let field_enum = quote! {
#[allow(non_camel_case_types)]
enum __Field {
#(field_idents,)*
#ignore_variant
}
};
let index_field_arms: Vec<_> = field_idents.iter()
.enumerate()
.map(|(field_index, field_ident)| {
@ -745,6 +737,14 @@ fn deserialize_field_visitor(
}
};
let field_enum = quote! {
#[allow(non_camel_case_types)]
enum __Field {
#(field_idents,)*
#ignore_variant
}
};
let impl_item = quote! {
impl _serde::de::Deserialize for __Field {
#[inline]