@@ -19,11 +19,12 @@ impl SayHelloTo {
21impl Render for SayHelloTo {
21impl Render for SayHelloTo {
22− fn render<'a, 'bump>(&'a self, bump: &'bump Bump) -> dodrio::node::NodeRef<'bump>
22+ fn render<'a, 'bump>(&'a self, bump: &'bump Bump) -> dodrio::node::Node<'bump>
24 'a: 'bump,
24 'a: 'bump,
26− let input = bump.alloc(Node::element(
26+ let input = Node::element(
29 Attribute {
30 Attribute {
@@ -36,13 +37,12 @@ impl Render for SayHelloTo {
41 let hello = bumpalo::format!(in bump, "Hello, {}!", self.who);
42 let hello = bumpalo::format!(in bump, "Hello, {}!", self.who);
42− let hello = bump.alloc(Node::text(hello.into_bump_str()));
43+ let hello = Node::text(hello.into_bump_str());
44− bump.alloc(Node::element("div", [], [input.into(), hello.into()]))
45+ Node::element(bump, "div", [], [input, hello])