summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-23 23:39:36 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-23 23:39:36 -0400
commita140825eb453173323df75eba546f1fb7c9dc47b (patch)
tree34460244a3d89a9e6e302911be2f3c7cdd9a8f46 /src/run.rs
parenta50ab8c76f8467e7f023a9d6098b50027c35c3a6 (diff)
make use of std::io::Result
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run.rs b/src/run.rs
index 09e403c..58dfc15 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -51,7 +51,7 @@ fn reload_tab(
index: usize,
context: &mut JoshutoContext,
view: &JoshutoView,
-) -> Result<(), std::io::Error> {
+) -> std::io::Result<()> {
ReloadDirList::reload(index, context)?;
if index == context.curr_tab_index {
let dirty_tab = &mut context.tabs[index];
@@ -86,7 +86,7 @@ fn join_thread(
Ok(())
}
-fn process_threads(context: &mut JoshutoContext, view: &JoshutoView) -> Result<(), std::io::Error> {
+fn process_threads(context: &mut JoshutoContext, view: &JoshutoView) -> std::io::Result<()> {
let thread_wait_duration: time::Duration = time::Duration::from_millis(100);
for i in 0..context.threads.len() {
match &context.threads[i].recv_timeout(&thread_wait_duration) {