wip: broken, but solved
This commit is contained in:
1 parent
879e107634
commit
cb74d70f83
21 files changed
+2398
-2341
No files matched your search
@@ -58,7 +58,11 @@ impl ToTokens for HtmlRender {
|
||||
|
||||
// create a lazy tree that accepts a bump allocator
|
||||
let final_tokens = quote! {
|
||||
move |bump| { #new_toks }
|
||||
move |ctx| {
|
||||
let bump = ctx.bump();
|
||||
|
||||
#new_toks
|
||||
}
|
||||
};
|
||||
|
||||
final_tokens.to_tokens(out_tokens);
|
||||
|
||||
@@ -72,7 +72,10 @@ impl ToTokens for RsxRender {
|
||||
|
||||
// create a lazy tree that accepts a bump allocator
|
||||
let final_tokens = quote! {
|
||||
move |bump: &Bump| { #new_toks }
|
||||
move |ctx| {
|
||||
let bump = ctx.bump();
|
||||
#new_toks
|
||||
}
|
||||
};
|
||||
|
||||
final_tokens.to_tokens(out_tokens);
|
||||
|
||||
Reference in new issue
Block a user