on master help sign in
Address clippy warnings.
8f0ddf9Blaž Hrastnik
helix-view/src/editor.rs−1
@@ -1,7 +1,6 @@
1use crate::theme::Theme;
1use crate::theme::Theme;
2use crate::tree::Tree;
2use crate::tree::Tree;
3use crate::{Document, View};
3use crate::{Document, View};
4−use slotmap::DefaultKey as Key;
5
4
6use std::path::PathBuf;
5use std::path::PathBuf;
7
6
helix-view/src/tree.rs+2−2
@@ -24,7 +24,7 @@ pub enum Node {
24}
24}
25
25
26impl Node {
26impl Node {
27− pub fn container(area: Rect) -> Self {
27+ pub fn container() -> Self {
28 Self::Container(Box::new(Container::new()))
28 Self::Container(Box::new(Container::new()))
29 }
29 }
30
30
@@ -59,7 +59,7 @@ impl Container {
59
59
60impl Tree {
60impl Tree {
61 pub fn new(area: Rect) -> Self {
61 pub fn new(area: Rect) -> Self {
62− let root = Node::container(area);
62+ let root = Node::container();
63 let mut nodes = HopSlotMap::new();
63 let mut nodes = HopSlotMap::new();
64 let root = nodes.insert(root);
64 let root = nodes.insert(root);
65
65