summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-16 21:02:35 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-16 21:02:35 -0400
commita0286692964d120ee8a6ea36fbfb2f577dc2305c (patch)
tree453f2dbecd19f5d68d421f18c9e9f6b91bf1d96f /src/tab.rs
parent1475597b83fa0afbb6ddec979f6a8030a8c64db9 (diff)
cargo clippy
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 22674be..b7aabce 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -14,8 +14,7 @@ impl JoshutoTab {
let mut history = JoshutoHistory::new();
history.populate_to_root(&curr_path, sort_option)?;
- let tab = JoshutoTab { curr_path, history };
- Ok(tab)
+ Ok(Self { curr_path, history })
}
pub fn curr_list_ref(&self) -> Option<&JoshutoDirList> {