summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:11:36 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:11:36 -0400
commit4c194de5c7e940e1eaf71c0fb4b455ba6547c880 (patch)
tree331eb9908c67fe9a2f6d6e98e3b2d4f0901326bc /src/history.rs
parent6b013bb91969d7e269aa5a08da729a8370a31900 (diff)
use readline() instead of readline_with_initial with possible
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/history.rs b/src/history.rs
index 9d85322..b5e04ae 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -72,8 +72,7 @@ impl DirectoryHistory for HashMap<PathBuf, JoshutoDirList> {
sort_option: &sort::SortOption,
) -> Result<&mut JoshutoDirList, std::io::Error> {
match self.entry(path.to_path_buf().clone()) {
- Entry::Occupied(mut entry) => {
- let dir_entry = entry.get_mut();
+ Entry::Occupied(entry) => {
/*
if dir_entry.need_update() {
dir_entry.update_contents(&sort_option)?;