on master help sign in
Drop some useless imports.
commitccdebb99b547cd2eafc0b0e4f5cfc116fa729487 authorBlaž Hrastnik <blaz@mxxn.io> dateSun 9 May 2021, 18:32 (5 years ago) parentff4c1d0
4 files changed+1−10
helix-term/src/ui/completion.rs−1 helix-term/src/ui/menu.rs−1 helix-term/src/ui/picker.rs+1−2 helix-term/src/ui/popup.rs−6
helix-term/src/ui/completion.rs−1
@@ -4,7 +4,6 @@ use tui::{
44 buffer::Buffer as Surface,
55 layout::Rect,
66 style::{Color, Style},
7− widgets::{Block, Borders},
87};
98
109use std::borrow::Cow;
helix-term/src/ui/menu.rs−1
@@ -4,7 +4,6 @@ use tui::{
44 buffer::Buffer as Surface,
55 layout::Rect,
66 style::{Color, Style},
7− widgets::{Block, Borders},
87};
98
109use std::borrow::Cow;
helix-term/src/ui/picker.rs+1−2
@@ -4,7 +4,7 @@ use tui::{
44 buffer::Buffer as Surface,
55 layout::Rect,
66 style::{Color, Style},
7− widgets::{Block, Borders},
7+ widgets::{Block, BorderType, Borders},
88};
99
1010use fuzzy_matcher::skim::SkimMatcherV2 as Matcher;
@@ -224,7 +224,6 @@ impl<T: 'static> Component for Picker<T> {
224224 self.prompt.render(area, surface, cx);
225225
226226 // -- Separator
227− use tui::widgets::BorderType;
228227 let style = Style::default().fg(Color::Rgb(90, 89, 119));
229228 let symbols = BorderType::line_symbols(BorderType::Plain);
230229 for x in inner.left()..inner.right() {
helix-term/src/ui/popup.rs−6
@@ -4,7 +4,6 @@ use tui::{
44 buffer::Buffer as Surface,
55 layout::Rect,
66 style::{Color, Style},
7− widgets::{Block, Borders},
87};
98
109use std::borrow::Cow;
@@ -113,11 +112,6 @@ impl<T: Component> Component for Popup<T> {
113112 }
114113
115114 fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
116− use tui::{
117− text::Text,
118− widgets::{Paragraph, Widget, Wrap},
119− };
120−
121115 cx.scroll = Some(self.scroll);
122116
123117 let position = self