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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interactive/app/eventloop.rs b/src/interactive/app/eventloop.rs
index 7333678..6ed3c61 100644
--- a/src/interactive/app/eventloop.rs
+++ b/src/interactive/app/eventloop.rs
@@ -77,7 +77,7 @@ impl AppState {
use crosstermion::input::Key::*;
use FocussedPane::*;
- self.draw(window, traversal, display.clone(), terminal)?;
+ self.draw(window, traversal, *display, terminal)?;
for key in keys {
self.reset_message();
match key {
@@ -107,7 +107,7 @@ impl AppState {
match self.focussed {
FocussedPane::Mark => {
- self.dispatch_to_mark_pane(key, window, traversal, display.clone(), terminal)
+ self.dispatch_to_mark_pane(key, window, traversal, *display, terminal)
}
FocussedPane::Help => {
window.help_pane.as_mut().expect("help pane").key(key);
@@ -147,7 +147,7 @@ impl AppState {
_ => {}
},
};
- self.draw(window, traversal, display.clone(), terminal)?;
+ self.draw(window, traversal, *display, terminal)?;
}
Ok(ProcessingResult::Finished(WalkResult {
num_errors: traversal.io_errors,