Drop some useless imports.
This commit is contained in:
parent
ff4c1d05de
commit
ccdebb99b5
4 changed files with 1 additions and 10 deletions
|
@ -4,7 +4,6 @@ use tui::{
|
||||||
buffer::Buffer as Surface,
|
buffer::Buffer as Surface,
|
||||||
layout::Rect,
|
layout::Rect,
|
||||||
style::{Color, Style},
|
style::{Color, Style},
|
||||||
widgets::{Block, Borders},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
|
@ -4,7 +4,6 @@ use tui::{
|
||||||
buffer::Buffer as Surface,
|
buffer::Buffer as Surface,
|
||||||
layout::Rect,
|
layout::Rect,
|
||||||
style::{Color, Style},
|
style::{Color, Style},
|
||||||
widgets::{Block, Borders},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
|
@ -4,7 +4,7 @@ use tui::{
|
||||||
buffer::Buffer as Surface,
|
buffer::Buffer as Surface,
|
||||||
layout::Rect,
|
layout::Rect,
|
||||||
style::{Color, Style},
|
style::{Color, Style},
|
||||||
widgets::{Block, Borders},
|
widgets::{Block, BorderType, Borders},
|
||||||
};
|
};
|
||||||
|
|
||||||
use fuzzy_matcher::skim::SkimMatcherV2 as Matcher;
|
use fuzzy_matcher::skim::SkimMatcherV2 as Matcher;
|
||||||
|
@ -224,7 +224,6 @@ impl<T: 'static> Component for Picker<T> {
|
||||||
self.prompt.render(area, surface, cx);
|
self.prompt.render(area, surface, cx);
|
||||||
|
|
||||||
// -- Separator
|
// -- Separator
|
||||||
use tui::widgets::BorderType;
|
|
||||||
let style = Style::default().fg(Color::Rgb(90, 89, 119));
|
let style = Style::default().fg(Color::Rgb(90, 89, 119));
|
||||||
let symbols = BorderType::line_symbols(BorderType::Plain);
|
let symbols = BorderType::line_symbols(BorderType::Plain);
|
||||||
for x in inner.left()..inner.right() {
|
for x in inner.left()..inner.right() {
|
||||||
|
|
|
@ -4,7 +4,6 @@ use tui::{
|
||||||
buffer::Buffer as Surface,
|
buffer::Buffer as Surface,
|
||||||
layout::Rect,
|
layout::Rect,
|
||||||
style::{Color, Style},
|
style::{Color, Style},
|
||||||
widgets::{Block, Borders},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
@ -113,11 +112,6 @@ impl<T: Component> Component for Popup<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
|
fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
|
||||||
use tui::{
|
|
||||||
text::Text,
|
|
||||||
widgets::{Paragraph, Widget, Wrap},
|
|
||||||
};
|
|
||||||
|
|
||||||
cx.scroll = Some(self.scroll);
|
cx.scroll = Some(self.scroll);
|
||||||
|
|
||||||
let position = self
|
let position = self
|
||||||
|
|
Loading…
Add table
Reference in a new issue