wip: broken, but solved

This commit is contained in:
Jonathan Kelley committed 2021-03-03 02:27:26 -05:00
1 parent 879e107634
commit cb74d70f83
21 files changed
+2398 -2341

No files matched your search

+5 -1
View File
@@ -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);
+4 -1
View File
@@ -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);