diff options
author | Blaž Hrastnik | 2021-02-05 07:06:48 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-05 07:06:48 +0000 |
commit | a924ad288560cff871a4e653e000396c78805252 (patch) | |
tree | 8b4cb1f08ceaaecc3ca56e264752521a8d1c296c /helix-view | |
parent | c70080dd686738ab6272dd0b3c421c6621e86e34 (diff) |
simplify.
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/tree.rs | 6 |
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(); |