Fix unquoting arms with latest quasi

This commit is contained in:
Erick Tryzelaar 2015-05-02 10:44:57 -07:00
parent f0c87fbd4c
commit 206e19edb4
3 changed files with 5 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "serde"
version = "0.3.2"
version = "0.3.3"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0"
description = "A generic serialization/deserialization framework"
@ -14,7 +14,4 @@ num = "*"
[dev-dependencies]
rustc-serialize = "*"
[dev-dependencies.serde_macros]
path = "serde_macros/"
version = "0.3.2"
serde_macros = { version = "*", path = "serde_macros" }

View File

@ -1,6 +1,6 @@
[package]
name = "serde_macros"
version = "0.3.2"
version = "0.3.3"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0"
description = "Macros to auto-generate implementations for the serde framework"

View File

@ -361,8 +361,8 @@ fn deserialize_item_enum(
let variant_arms: Vec<_> = enum_def.variants.iter()
.enumerate()
.map(|(i, variant)| {
let variant_name = builder.expr().path()
.id("__Field").id(format!("__field{}", i))
let variant_name = builder.pat().enum_()
.id("__Field").id(format!("__field{}", i)).build()
.build();
let expr = deserialize_variant(