From 7521db7b0bf3eaaa6dfd431d6b89c34ded11c747 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 1 Nov 2015 13:24:26 -0800 Subject: [PATCH] fix(crates): Bump aster and syntex_syntax --- serde_codegen/Cargo.toml | 10 +++++----- serde_codegen/src/de.rs | 2 +- serde_codegen/src/ser.rs | 2 +- serde_tests/Cargo.toml | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/serde_codegen/Cargo.toml b/serde_codegen/Cargo.toml index e5cc8ad9..6e8f1564 100644 --- a/serde_codegen/Cargo.toml +++ b/serde_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serde_codegen" -version = "0.6.1" +version = "0.6.2" authors = ["Erick Tryzelaar "] license = "MIT/Apache-2.0" description = "Macros to auto-generate implementations for the serde framework" @@ -15,12 +15,12 @@ nightly = ["quasi_macros"] with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"] [build-dependencies] -quasi_codegen = { verision = "^0.3.4", optional = true } -syntex = { version = "^0.18.0", optional = true } +quasi_codegen = { verision = "^0.3.6", optional = true } +syntex = { version = "^0.17.0", optional = true } [dependencies] -aster = { version = "^0.5.0", default-features = false } +aster = { version = "^0.6.0", default-features = false } quasi = { verision = "^0.3.5", default-features = false } quasi_macros = { version = "^0.3.5", optional = true } syntex = { version = "^0.17.0", optional = true } -syntex_syntax = { version = "^0.18.0", optional = true } +syntex_syntax = { version = "^0.19.1", optional = true } diff --git a/serde_codegen/src/de.rs b/serde_codegen/src/de.rs index 4268326c..5d5412f8 100644 --- a/serde_codegen/src/de.rs +++ b/serde_codegen/src/de.rs @@ -622,7 +622,7 @@ fn deserialize_variant( ) -> P { let variant_ident = variant.node.name; - match *variant.node.data { + match variant.node.data { ast::VariantData::Unit(_) => { quote_expr!(cx, { try!(visitor.visit_unit()); diff --git a/serde_codegen/src/ser.rs b/serde_codegen/src/ser.rs index 4f0d6845..044a1297 100644 --- a/serde_codegen/src/ser.rs +++ b/serde_codegen/src/ser.rs @@ -292,7 +292,7 @@ fn serialize_variant( let variant_ident = variant.node.name; let variant_name = builder.expr().str(variant_ident); - match *variant.node.data { + match variant.node.data { ast::VariantData::Unit(_) => { let pat = builder.pat().enum_() .id(type_ident).id(variant_ident).build() diff --git a/serde_tests/Cargo.toml b/serde_tests/Cargo.toml index 68356a29..8eb41025 100644 --- a/serde_tests/Cargo.toml +++ b/serde_tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serde_tests" -version = "0.5.0" +version = "0.6.2" authors = ["Erick Tryzelaar "] license = "MIT/Apache-2.0" description = "A generic serialization/deserialization framework" @@ -11,15 +11,15 @@ keywords = ["serialization"] build = "build.rs" [build-dependencies] -syntex = { version = "*" } -syntex_syntax = { version = "*" } +syntex = { version = "^0.17.0" } +syntex_syntax = { version = "^0.19.1" } serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] } [dev-dependencies] -num = "*" -rustc-serialize = "*" +num = "^0.1.27" +rustc-serialize = "^0.3.16" serde = { version = "*", path = "../serde" } -syntex = "*" +syntex = "^0.17.0" [[test]] name = "test"