Feat: add context to builder

This commit is contained in:
Jonathan Kelley committed 2021-03-03 23:06:11 -05:00
1 parent fcd68e61d2
commit cf16090838
8 files changed
+144 -98

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ impl ToTokens for HtmlRender {
// create a lazy tree that accepts a bump allocator
let final_tokens = quote! {
move |ctx| {
let bump = ctx.bump();
let bump = ctx.bump;
#new_toks
}
+1 -1
View File
@@ -73,7 +73,7 @@ impl ToTokens for RsxRender {
// create a lazy tree that accepts a bump allocator
let final_tokens = quote! {
move |ctx| {
let bump = ctx.bump();
let bump = ctx.bump;
#new_toks
}
};