refactor: export as flat hierarchy

BREAKING CHANGE: no more exported modules.
Everything is on the main export now.
This commit is contained in:
EdJoPaTo
2021-10-24 03:38:00 +02:00
parent 8e5a57bd8e
commit f0bbd09603
2 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
pub mod event;
use tui_tree_widget::{flatten, identifier, TreeItem, TreeState};
use tui_tree_widget::{flatten, get_identifier_without_leaf, TreeItem, TreeState};
pub struct StatefulTree<'a> {
pub state: TreeState,
@@ -52,7 +52,7 @@ impl<'a> StatefulTree<'a> {
pub fn close(&mut self) {
let selected = self.state.selected();
if !self.state.close(&selected) {
let (head, _) = identifier::get_without_leaf(&selected);
let (head, _) = get_identifier_without_leaf(&selected);
self.state.select(head);
}
}