aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r--helix-view/src/tree.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index a866d660..100d8a54 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -24,7 +24,7 @@ pub enum Node {
}
impl Node {
- pub fn container(area: Rect) -> Self {
+ pub fn container() -> Self {
Self::Container(Box::new(Container::new()))
}
@@ -59,7 +59,7 @@ impl Container {
impl Tree {
pub fn new(area: Rect) -> Self {
- let root = Node::container(area);
+ let root = Node::container();
let mut nodes = HopSlotMap::new();
let root = nodes.insert(root);