From a924ad288560cff871a4e653e000396c78805252 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 5 Feb 2021 16:06:48 +0900 Subject: simplify. --- helix-view/src/tree.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helix-view') 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(); -- cgit v1.2.3-70-g09d2