diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-27 22:23:09 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-27 22:23:09 -0400 |
commit | e04a0635c0732a6b04893f9d8b49529c221b76a0 (patch) | |
tree | 53364c42839798b320a2eaa48706fe71a222264b /src/tab.rs | |
parent | a140825eb453173323df75eba546f1fb7c9dc47b (diff) |
populate_to_root now returns a Result
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,9 +19,9 @@ pub struct JoshutoTab { } impl JoshutoTab { - pub fn new(curr_path: PathBuf, sort_option: &sort::SortOption) -> Result<Self, std::io::Error> { + pub fn new(curr_path: PathBuf, sort_option: &sort::SortOption) -> std::io::Result<Self> { let mut history = JoshutoHistory::new(); - history.populate_to_root(&curr_path, sort_option); + history.populate_to_root(&curr_path, sort_option)?; let curr_list = history.pop_or_create(&curr_path, sort_option)?; |