Feat: add context to builder
This commit is contained in:
1 parent
fcd68e61d2
commit
cf16090838
8 files changed
+144
-98
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user