Skip to content

Commit

Permalink
Fix unquoting arms with latest quasi
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed May 2, 2015
1 parent f0c87fb commit 206e19e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde"
version = "0.3.2"
version = "0.3.3"
authors = ["Erick Tryzelaar <[email protected]>"]
license = "MIT/Apache-2.0"
description = "A generic serialization/deserialization framework"
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion serde_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_macros"
version = "0.3.2"
version = "0.3.3"
authors = ["Erick Tryzelaar <[email protected]>"]
license = "MIT/Apache-2.0"
description = "Macros to auto-generate implementations for the serde framework"
Expand Down
4 changes: 2 additions & 2 deletions serde_macros/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 206e19e

Please sign in to comment.