summaryrefslogtreecommitdiffstats
path: root/src/interactive/app/eventloop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interactive/app/eventloop.rs')
-rw-r--r--src/interactive/app/eventloop.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/interactive/app/eventloop.rs b/src/interactive/app/eventloop.rs
index 71dcb82..bdb278e 100644
--- a/src/interactive/app/eventloop.rs
+++ b/src/interactive/app/eventloop.rs
@@ -11,7 +11,7 @@ use crosstermion::crossterm::event::{KeyCode, KeyEvent, KeyEventKind, KeyModifie
use crosstermion::input::Event;
use dua::{
traverse::{BackgroundTraversal, EntryData, Traversal},
- WalkOptions, WalkResult,
+ WalkResult,
};
use std::path::PathBuf;
use tui::backend::Backend;
@@ -64,14 +64,9 @@ impl AppState {
result
}
- pub fn traverse(
- &mut self,
- traversal: &Traversal,
- walk_options: &WalkOptions,
- input: Vec<PathBuf>,
- ) -> Result<()> {
+ pub fn traverse(&mut self, traversal: &Traversal, input: Vec<PathBuf>) -> Result<()> {
let background_traversal =
- BackgroundTraversal::start(traversal.root_index, walk_options, input)?;
+ BackgroundTraversal::start(traversal.root_index, &self.walk_options, input)?;
self.navigation_mut().view_root = traversal.root_index;
self.active_traversal = Some(background_traversal);
Ok(())