diff options
| author | lukeflo | 2024-11-06 21:23:37 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-06 21:23:37 +0100 |
| commit | 910b9aaa1b892555548a9b280a349b53b7cde770 (patch) | |
| tree | 20edfbe3f1439590d9c468c02d9048dbd20ebaed /src/tui/ui.rs | |
| parent | e1923e83711f6d06e994167a83155fbcdd80cd80 (diff) | |
| download | bibiman-910b9aaa1b892555548a9b280a349b53b7cde770.tar.gz bibiman-910b9aaa1b892555548a9b280a349b53b7cde770.zip | |
remove unneccessary TagListItem struct
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 7ee6670..be8eae6 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -16,7 +16,6 @@ ///// use crate::bibiman::entries::EntryTableColumn; -use crate::bibiman::keywords::TagListItem; use crate::bibiman::{CurrentArea, FormerArea}; use crate::App; use ratatui::layout::{Direction, Position}; @@ -77,13 +76,6 @@ pub const fn alternate_colors(i: usize) -> Color { } } -impl From<&TagListItem> for ListItem<'_> { - fn from(value: &TagListItem) -> Self { - let line = Line::styled(format!("{}", value.keyword), TEXT_FG_COLOR); - ListItem::new(line) - } -} - pub fn render_ui(app: &mut App, frame: &mut Frame) { let [header_area, main_area, footer_area] = Layout::new( Direction::Vertical, |
