From 9e53405f43ad0e087dea7ed64ddafca0356c6560 Mon Sep 17 00:00:00 2001 From: Johannes Willbold Date: Thu, 27 Dec 2018 21:21:46 +0100 Subject: [PATCH] Fix for rustc 1.15.0 --- serde_derive/src/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde_derive/src/ser.rs b/serde_derive/src/ser.rs index 784c77ac..6bdf58b7 100644 --- a/serde_derive/src/ser.rs +++ b/serde_derive/src/ser.rs @@ -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));