aboutsummaryrefslogtreecommitdiffstats
path: root/components/config_plugins
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2019-09-27 12:41:57 +0200
committerAnthony Ramine <nox@nox.paris>2019-09-27 13:29:55 +0200
commit99ef7813f2c8f0de2a84074656821ac97a3e6392 (patch)
tree33989873f1239454a7b4619d706b030f00ed400c /components/config_plugins
parent2d823d7721c85ca74042b54a29ed371cd0af1293 (diff)
downloadservo-99ef7813f2c8f0de2a84074656821ac97a3e6392.tar.gz
servo-99ef7813f2c8f0de2a84074656821ac97a3e6392.zip
Bump all in-tree components to syn 1
Diffstat (limited to 'components/config_plugins')
-rw-r--r--components/config_plugins/Cargo.toml6
-rw-r--r--components/config_plugins/lib.rs8
2 files changed, 7 insertions, 7 deletions
diff --git a/components/config_plugins/Cargo.toml b/components/config_plugins/Cargo.toml
index 24e0fb5d865..3399e907039 100644
--- a/components/config_plugins/Cargo.toml
+++ b/components/config_plugins/Cargo.toml
@@ -12,7 +12,7 @@ proc-macro = true
path = "lib.rs"
[dependencies]
-syn = { version = "0.15", default-features = false, features = ["clone-impls", "parsing"] }
-quote = "0.6"
-proc-macro2 = "0.4"
+syn = { version = "1", default-features = false, features = ["clone-impls", "parsing"] }
+quote = "1"
+proc-macro2 = "1"
itertools = "0.8"
diff --git a/components/config_plugins/lib.rs b/components/config_plugins/lib.rs
index b93542d737b..bd2ae2ca6e5 100644
--- a/components/config_plugins/lib.rs
+++ b/components/config_plugins/lib.rs
@@ -196,15 +196,15 @@ impl Field {
fn attr_to_pref_name(attr: &Attribute) -> Option<LitStr> {
attr.parse_meta().ok().and_then(|meta| {
- if let Meta::List(MetaList { ident, nested, .. }) = meta {
- if ident.to_string() == "serde" {
+ if let Meta::List(MetaList { path, nested, .. }) = meta {
+ if path.is_ident("serde") {
if let Some(NestedMeta::Meta(Meta::NameValue(MetaNameValue {
- ref ident,
+ ref path,
lit: Lit::Str(val),
..
}))) = nested.iter().next()
{
- if ident.to_string() == "rename" {
+ if path.is_ident("rename") {
return Some(val.clone());
}
}