diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-23 23:39:36 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-23 23:39:36 -0400 |
commit | a140825eb453173323df75eba546f1fb7c9dc47b (patch) | |
tree | 34460244a3d89a9e6e302911be2f3c7cdd9a8f46 /src/run.rs | |
parent | a50ab8c76f8467e7f023a9d6098b50027c35c3a6 (diff) |
make use of std::io::Result
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |