mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Format components dom_struct, domobject_derive and embedder_traits #21373
This commit is contained in:
parent
aa61200eca
commit
d76ddabba4
4 changed files with 47 additions and 19 deletions
|
@ -5,8 +5,10 @@
|
|||
#![recursion_limit = "128"]
|
||||
|
||||
extern crate proc_macro;
|
||||
#[macro_use] extern crate quote;
|
||||
#[macro_use] extern crate syn;
|
||||
#[macro_use]
|
||||
extern crate quote;
|
||||
#[macro_use]
|
||||
extern crate syn;
|
||||
|
||||
#[proc_macro_derive(DomObject)]
|
||||
pub fn expand_token_stream(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
||||
|
@ -74,7 +76,9 @@ fn expand_dom_object(input: syn::DeriveInput) -> quote::Tokens {
|
|||
}));
|
||||
|
||||
let mut generics = input.generics.clone();
|
||||
generics.params.push(parse_quote!(__T: ::dom::bindings::reflector::DomObject));
|
||||
generics
|
||||
.params
|
||||
.push(parse_quote!(__T: ::dom::bindings::reflector::DomObject));
|
||||
|
||||
let (impl_generics, _, where_clause) = generics.split_for_impl();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue