summaryrefslogtreecommitdiffstats
path: root/src/util/event.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-08-30 21:29:21 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-08-30 21:29:21 -0400
commite6e35948545bfa14d672cafae92c2c8c153ba708 (patch)
tree68daaf0da49f0507fc3e3d4a4cfd4f812ff00a23 /src/util/event.rs
parente7218c81d90ae07d7f56dce0c3032db15b11d118 (diff)
make io worker msgs more friendly and informative
Diffstat (limited to 'src/util/event.rs')
-rw-r--r--src/util/event.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/event.rs b/src/util/event.rs
index 9b2ccc2..fca1edb 100644
--- a/src/util/event.rs
+++ b/src/util/event.rs
@@ -5,13 +5,13 @@ use std::thread;
use termion::event::Key;
use termion::input::TermRead;
-use crate::io::FileOp;
+use crate::io::{FileOp, IOWorkerProgress};
#[derive(Debug)]
pub enum Event {
Input(Key),
- IOWorkerProgress((FileOp, u64)),
- IOWorkerResult((FileOp, std::io::Result<u64>)),
+ IOWorkerProgress(IOWorkerProgress),
+ IOWorkerResult(io::Result<IOWorkerProgress>),
}
#[derive(Debug, Clone, Copy)]