summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-27 22:23:09 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-27 22:23:09 -0400
commite04a0635c0732a6b04893f9d8b49529c221b76a0 (patch)
tree53364c42839798b320a2eaa48706fe71a222264b /src/tab.rs
parenta140825eb453173323df75eba546f1fb7c9dc47b (diff)
populate_to_root now returns a Result
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tab.rs b/src/tab.rs
index ce2f274..95dfb3e 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -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)?;