mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 23:01:01 +00:00
Update to syntex 0.54
This commit is contained in:
@@ -25,5 +25,5 @@ clippy = { version = "^0.*", optional = true }
|
|||||||
quote = "0.3.8"
|
quote = "0.3.8"
|
||||||
serde_codegen_internals = { version = "=0.11.3", default-features = false, path = "../serde_codegen_internals" }
|
serde_codegen_internals = { version = "=0.11.3", default-features = false, path = "../serde_codegen_internals" }
|
||||||
syn = { version = "0.10", features = ["aster", "visit"] }
|
syn = { version = "0.10", features = ["aster", "visit"] }
|
||||||
syntex = { version = "^0.52.0", optional = true }
|
syntex = { version = "^0.54.0", optional = true }
|
||||||
syntex_syntax = { version = "^0.52.0", optional = true }
|
syntex_syntax = { version = "^0.54.0", optional = true }
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ macro_rules! shim {
|
|||||||
|
|
||||||
use syntax::{attr, ast, visit};
|
use syntax::{attr, ast, visit};
|
||||||
struct MarkSerdeAttributesUsed;
|
struct MarkSerdeAttributesUsed;
|
||||||
impl visit::Visitor for MarkSerdeAttributesUsed {
|
impl<'a> visit::Visitor<'a> for MarkSerdeAttributesUsed {
|
||||||
fn visit_attribute(&mut self, attr: &ast::Attribute) {
|
fn visit_attribute(&mut self, attr: &ast::Attribute) {
|
||||||
if attr.value.name == "serde" {
|
if attr.value.name == "serde" {
|
||||||
if let ast::MetaItemKind::List(..) = attr.value.node {
|
if let ast::MetaItemKind::List(..) = attr.value.node {
|
||||||
|
|||||||
Reference in New Issue
Block a user