Fix for rustc 1.15.0

This commit is contained in:
Johannes Willbold 2018-12-27 21:21:46 +01:00
parent 8aa5c2b45d
commit 9e53405f43

View File

@ -317,7 +317,7 @@ fn serialize_struct_as_struct(
let type_name = cattrs.name().serialize_name();
let additional_field_count: usize = match cattrs.tag() {
attr::TagType::Internal{ref tag} => {
&attr::TagType::Internal{ref tag} => {
let func = StructTrait::SerializeStruct.serialize_field(Span::call_site());
serialize_fields.insert(0, quote! {
try!(#func(&mut __serde_state, #tag, #type_name));