aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-05 02:43:16 +0000
committerBlaž Hrastnik2021-02-05 02:43:16 +0000
commit8f0ddf9632068a28cc09b32c84cfec9093b73104 (patch)
treea0f6ff7ea1850a79cfa17446cd3c61811f84c345 /helix-view
parent9c33b5340ac057a8e2dbe6028b52385346594f3d (diff)
Address clippy warnings.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs1
-rw-r--r--helix-view/src/tree.rs4
2 files changed, 2 insertions, 3 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index be400935..2942507d 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1,7 +1,6 @@
use crate::theme::Theme;
use crate::tree::Tree;
use crate::{Document, View};
-use slotmap::DefaultKey as Key;
use std::path::PathBuf;
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index a866d660..100d8a54 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -24,7 +24,7 @@ pub enum Node {
}
impl Node {
- pub fn container(area: Rect) -> Self {
+ pub fn container() -> Self {
Self::Container(Box::new(Container::new()))
}
@@ -59,7 +59,7 @@ impl Container {
impl Tree {
pub fn new(area: Rect) -> Self {
- let root = Node::container(area);
+ let root = Node::container();
let mut nodes = HopSlotMap::new();
let root = nodes.insert(root);