summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-05-28 11:10:11 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-05-28 11:10:11 +0200
commit032948f01ace1694d77aa1865d62aa8ade32247f (patch)
tree432187a5341d8b0ad82209157386d55544c647c3 /src
parentbfa83ae343058dddf073f36266a8c4c2ad24a48d (diff)
rename filetree crate to prepare for publish
Diffstat (limited to 'src')
-rw-r--r--src/components/revision_files.rs4
-rw-r--r--src/components/syntax_text.rs2
-rw-r--r--src/ui/mod.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/components/revision_files.rs b/src/components/revision_files.rs
index 3169a923..1b3fefb9 100644
--- a/src/components/revision_files.rs
+++ b/src/components/revision_files.rs
@@ -15,7 +15,7 @@ use asyncgit::{
};
use crossbeam_channel::Sender;
use crossterm::event::Event;
-use filetree::FileTree;
+use filetreelist::{FileTree, FileTreeItem};
use std::{
cell::Cell, collections::BTreeSet, convert::From, path::Path,
};
@@ -104,7 +104,7 @@ impl RevisionFilesComponent {
}
fn tree_item_to_span<'a>(
- item: &'a filetree::FileTreeItem,
+ item: &'a FileTreeItem,
theme: &SharedTheme,
selected: bool,
) -> Span<'a> {
diff --git a/src/components/syntax_text.rs b/src/components/syntax_text.rs
index 57946ac1..8cacf805 100644
--- a/src/components/syntax_text.rs
+++ b/src/components/syntax_text.rs
@@ -18,7 +18,7 @@ use asyncgit::{
};
use crossbeam_channel::Sender;
use crossterm::event::Event;
-use filetree::MoveSelection;
+use filetreelist::MoveSelection;
use itertools::Either;
use std::{cell::Cell, convert::From, path::Path};
use tui::{
diff --git a/src/ui/mod.rs b/src/ui/mod.rs
index 7734b08d..ae143085 100644
--- a/src/ui/mod.rs
+++ b/src/ui/mod.rs
@@ -5,7 +5,7 @@ mod stateful_paragraph;
pub mod style;
mod syntax_text;
-use filetree::MoveSelection;
+use filetreelist::MoveSelection;
pub use scrollbar::draw_scrollbar;
pub use scrolllist::{draw_list, draw_list_block};
pub use stateful_paragraph::{