refactor: improve lifetime names

This commit is contained in:
EdJoPaTo
2024-05-13 00:33:34 +02:00
parent 04ecf5388f
commit 9dcccba31d
4 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -9,12 +9,12 @@ use ratatui::widgets::{Block, Scrollbar, ScrollbarOrientation};
use ratatui::{Frame, Terminal};
use tui_tree_widget::{Tree, TreeItem, TreeState};
struct App<'a> {
struct App {
state: TreeState<&'static str>,
items: Vec<TreeItem<'a, &'static str>>,
items: Vec<TreeItem<'static, &'static str>>,
}
impl<'a> App<'a> {
impl App {
fn new() -> Self {
Self {
state: TreeState::default(),