aboutsummaryrefslogtreecommitdiff
path: root/src/tui/ui.rs
diff options
context:
space:
mode:
authorlukeflo2024-11-06 21:23:37 +0100
committerlukeflo2024-11-06 21:23:37 +0100
commit910b9aaa1b892555548a9b280a349b53b7cde770 (patch)
tree20edfbe3f1439590d9c468c02d9048dbd20ebaed /src/tui/ui.rs
parente1923e83711f6d06e994167a83155fbcdd80cd80 (diff)
downloadbibiman-910b9aaa1b892555548a9b280a349b53b7cde770.tar.gz
bibiman-910b9aaa1b892555548a9b280a349b53b7cde770.zip
remove unneccessary TagListItem struct
Diffstat (limited to 'src/tui/ui.rs')
-rw-r--r--src/tui/ui.rs8
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,