diff options
author | Anthony Ramine <nox@nox.paris> | 2019-09-27 12:41:57 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2019-09-27 13:29:55 +0200 |
commit | 99ef7813f2c8f0de2a84074656821ac97a3e6392 (patch) | |
tree | 33989873f1239454a7b4619d706b030f00ed400c /components/config_plugins/lib.rs | |
parent | 2d823d7721c85ca74042b54a29ed371cd0af1293 (diff) | |
download | servo-99ef7813f2c8f0de2a84074656821ac97a3e6392.tar.gz servo-99ef7813f2c8f0de2a84074656821ac97a3e6392.zip |
Bump all in-tree components to syn 1
Diffstat (limited to 'components/config_plugins/lib.rs')
-rw-r--r-- | components/config_plugins/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } } |