summaryrefslogtreecommitdiffstats
path: root/src/commands/open_file.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/commands/open_file.rs
parenta50ab8c76f8467e7f023a9d6098b50027c35c3a6 (diff)
make use of std::io::Result
Diffstat (limited to 'src/commands/open_file.rs')
-rw-r--r--src/commands/open_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs
index bdc8e44..f622b0b 100644
--- a/src/commands/open_file.rs
+++ b/src/commands/open_file.rs
@@ -77,7 +77,7 @@ impl OpenFile {
Ok(())
}
- fn open_directory(path: &Path, context: &mut JoshutoContext) -> Result<(), std::io::Error> {
+ fn open_directory(path: &Path, context: &mut JoshutoContext) -> std::io::Result<()> {
std::env::set_current_dir(path)?;
let curr_tab = &mut context.tabs[context.curr_tab_index];