Fix unquoting arms with latest quasi
This commit is contained in:
parent
f0c87fbd4c
commit
206e19edb4
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
|
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
description = "A generic serialization/deserialization framework"
|
description = "A generic serialization/deserialization framework"
|
||||||
@ -14,7 +14,4 @@ num = "*"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rustc-serialize = "*"
|
rustc-serialize = "*"
|
||||||
|
serde_macros = { version = "*", path = "serde_macros" }
|
||||||
[dev-dependencies.serde_macros]
|
|
||||||
path = "serde_macros/"
|
|
||||||
version = "0.3.2"
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "serde_macros"
|
name = "serde_macros"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
|
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
description = "Macros to auto-generate implementations for the serde framework"
|
description = "Macros to auto-generate implementations for the serde framework"
|
||||||
|
@ -361,8 +361,8 @@ fn deserialize_item_enum(
|
|||||||
let variant_arms: Vec<_> = enum_def.variants.iter()
|
let variant_arms: Vec<_> = enum_def.variants.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, variant)| {
|
.map(|(i, variant)| {
|
||||||
let variant_name = builder.expr().path()
|
let variant_name = builder.pat().enum_()
|
||||||
.id("__Field").id(format!("__field{}", i))
|
.id("__Field").id(format!("__field{}", i)).build()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let expr = deserialize_variant(
|
let expr = deserialize_variant(
|
||||||
|
Loading…
Reference in New Issue
Block a user