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/commands/reload_dir.rs | |
parent | a50ab8c76f8467e7f023a9d6098b50027c35c3a6 (diff) |
make use of std::io::Result
Diffstat (limited to 'src/commands/reload_dir.rs')
-rw-r--r-- | src/commands/reload_dir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/reload_dir.rs b/src/commands/reload_dir.rs index b0d5c7a..b69b2c5 100644 --- a/src/commands/reload_dir.rs +++ b/src/commands/reload_dir.rs @@ -17,7 +17,7 @@ impl ReloadDirList { "reload_dir_list" } - pub fn reload(index: usize, context: &mut JoshutoContext) -> Result<(), std::io::Error> { + pub fn reload(index: usize, context: &mut JoshutoContext) -> std::io::Result<()> { let curr_tab = &mut context.tabs[index]; let sort_option = &context.config_t.sort_option; curr_tab.curr_list.update_contents(sort_option)?; |