diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-16 21:02:35 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-16 21:02:35 -0400 |
commit | a0286692964d120ee8a6ea36fbfb2f577dc2305c (patch) | |
tree | 453f2dbecd19f5d68d421f18c9e9f6b91bf1d96f /src/tab.rs | |
parent | 1475597b83fa0afbb6ddec979f6a8030a8c64db9 (diff) |
cargo clippy
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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> { |