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/dom_struct/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/dom_struct/lib.rs')
-rw-r--r-- | components/dom_struct/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/dom_struct/lib.rs b/components/dom_struct/lib.rs index 59a3cf8072c..f316a6f22bb 100644 --- a/components/dom_struct/lib.rs +++ b/components/dom_struct/lib.rs @@ -35,11 +35,7 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream { return quote!(#s2).into(); } if let Fields::Named(ref f) = s.fields { - let f = f - .named - .first() - .expect("Must have at least one field") - .into_value(); + let f = f.named.first().expect("Must have at least one field"); let ident = f.ident.as_ref().expect("Must have named fields"); let name = &s.ident; let ty = &f.ty; |