Fix for rustc 1.15.0
This commit is contained in:
parent
8aa5c2b45d
commit
9e53405f43
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user