on master help sign in
Address clippy warnings.
commit8f0ddf9632068a28cc09b32c84cfec9093b73104 authorBlaž Hrastnik <blaz@mxxn.io> dateFri 5 Feb 2021, 11:43 (6 years ago) parent9c33b53
2 files changed+2−3
helix-view/src/editor.rs−1 helix-view/src/tree.rs+2−2
helix-view/src/editor.rs−1
@@ -1,7 +1,6 @@
11use crate::theme::Theme;
22use crate::tree::Tree;
33use crate::{Document, View};
4−use slotmap::DefaultKey as Key;
54
65use std::path::PathBuf;
76
helix-view/src/tree.rs+2−2
@@ -24,7 +24,7 @@ pub enum Node {
2424}
2525
2626impl Node {
27− pub fn container(area: Rect) -> Self {
27+ pub fn container() -> Self {
2828 Self::Container(Box::new(Container::new()))
2929 }
3030
@@ -59,7 +59,7 @@ impl Container {
5959
6060impl Tree {
6161 pub fn new(area: Rect) -> Self {
62− let root = Node::container(area);
62+ let root = Node::container();
6363 let mut nodes = HopSlotMap::new();
6464 let root = nodes.insert(root);
6565