Feat: some code health

This commit is contained in:
Jonathan Kelley committed 2021-05-16 02:06:02 -04:00
1 parent 9810feebf5
commit c28697e1fe
16 files changed
+568 -551

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ use dioxus_core::prelude::*;
static Example: FC<()> = |ctx, props| {
ctx.render(dioxus_core::prelude::LazyNodes::new(move |ctx| {
let bump = ctx.bump;
let bump = ctx.bump();
dioxus::builder::ElementBuilder::new(ctx, "h1")
.children([{
use bumpalo::core_alloc::fmt::Write;
+1 -1
View File
@@ -17,7 +17,7 @@ static Header: FC<()> = |ctx, props| {
.child(VNode::Component(VComponent::new(
Bottom,
//
c.bump.alloc(()),
c.bump().alloc(()),
None,
)))
.finish()