mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Bump all in-tree components to syn 1
This commit is contained in:
parent
2d823d7721
commit
99ef7813f2
15 changed files with 94 additions and 86 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue