Feat: some code health
This commit is contained in:
1 parent
9810feebf5
commit
c28697e1fe
16 files changed
+568
-551
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! {
|
||||
dioxus::prelude::LazyNodes::new(move |ctx| {
|
||||
let bump = ctx.bump;
|
||||
let bump = &ctx.bump();
|
||||
|
||||
#new_toks
|
||||
})
|
||||
|
||||
@@ -51,7 +51,7 @@ impl ToTokens for RsxRender {
|
||||
let inner = &self.root;
|
||||
let output = quote! {
|
||||
dioxus::prelude::LazyNodes::new(move |ctx|{
|
||||
let bump = ctx.bump;
|
||||
let bump = &ctx.bump();
|
||||
#inner
|
||||
})
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user