@@ -24,7 +24,7 @@ pub enum Node {
26impl Node {
26impl Node {
27− pub fn container(area: Rect) -> Self {
27+ pub fn container() -> Self {
28 Self::Container(Box::new(Container::new()))
28 Self::Container(Box::new(Container::new()))
@@ -59,7 +59,7 @@ impl Container {
60impl Tree {
60impl Tree {
61 pub fn new(area: Rect) -> Self {
61 pub fn new(area: Rect) -> Self {
62− let root = Node::container(area);
62+ let root = Node::container();
63 let mut nodes = HopSlotMap::new();
63 let mut nodes = HopSlotMap::new();
64 let root = nodes.insert(root);
64 let root = nodes.insert(root);