aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/popup.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-01 17:41:20 +0000
committerNathan Vegdahl2021-07-02 02:06:52 +0000
commit702a0491db0fef8ee15cd6fcff3138812da2c2aa (patch)
tree42a1194f0b43465ca1125c0c2209a75b0b158389 /helix-term/src/ui/popup.rs
parent79f096963c75d107cd1f415666fb21a9cfd3cbd6 (diff)
Remove #[allow(unused)] from helix-term, and fix unused imports.
Lots of other warning still left. Will address in subsequent commits.
Diffstat (limited to 'helix-term/src/ui/popup.rs')
-rw-r--r--helix-term/src/ui/popup.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs
index af72735c..fc178af0 100644
--- a/helix-term/src/ui/popup.rs
+++ b/helix-term/src/ui/popup.rs
@@ -2,13 +2,8 @@ use crate::compositor::{Component, Compositor, Context, EventResult};
use crossterm::event::{Event, KeyCode, KeyEvent, KeyModifiers};
use tui::buffer::Buffer as Surface;
-use std::borrow::Cow;
-
use helix_core::Position;
-use helix_view::{
- graphics::{Color, Rect, Style},
- Editor,
-};
+use helix_view::graphics::Rect;
// TODO: share logic with Menu, it's essentially Popup(render_fn), but render fn needs to return
// a width/height hint. maybe Popup(Box<Component>)