summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-20 18:13:01 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-20 18:13:01 -0400
commit2f897531b41a21c5ed112d18f41f79078e6144b1 (patch)
tree2455612c50a6b03a6c405e86e912749ec693a1a9 /src/tab.rs
parentd6dcbc78792396eafeb6ef8f3fb01b03e22ce550 (diff)
use rustyline for textfield implementation
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tab.rs b/src/tab.rs
index a851b86..9c0f18d 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -42,15 +42,15 @@ impl JoshutoTab {
let mut list = self.curr_list.take();
if let Some(ref mut s) = list {
if s.path.exists() {
- s.update_contents(sort_option).unwrap();
+ s.update_contents(sort_option);
}
};
self.curr_list = list;
- list = self.parent_list.take();
+ let mut list = self.parent_list.take();
if let Some(ref mut s) = list {
if s.path.exists() {
- s.update_contents(sort_option).unwrap();
+ s.update_contents(sort_option);
}
};
self.parent_list = list;