aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-05 07:06:48 +0000
committerBlaž Hrastnik2021-02-05 07:06:48 +0000
commita924ad288560cff871a4e653e000396c78805252 (patch)
tree8b4cb1f08ceaaecc3ca56e264752521a8d1c296c /helix-view
parentc70080dd686738ab6272dd0b3c421c6621e86e34 (diff)
simplify.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/tree.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index 784fea3f..a5b59a79 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -57,6 +57,12 @@ impl Container {
}
}
+impl Default for Container {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl Tree {
pub fn new(area: Rect) -> Self {
let root = Node::container();