diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 15:14:13 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 15:14:13 -0400 |
commit | fd4bd6f79ec8051c91f69543fc20d5e8d6607f13 (patch) | |
tree | dda624a98d9aec467f2b7a11375b682e38739169 /src/preview.rs | |
parent | a521ceb379c34c854fb4e9848c0bcb7d28b46f4f (diff) |
cargo fmt
Diffstat (limited to 'src/preview.rs')
-rw-r--r-- | src/preview.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/preview.rs b/src/preview.rs index 2c65e95..982dcf8 100644 --- a/src/preview.rs +++ b/src/preview.rs @@ -45,11 +45,21 @@ fn preview_directory( ) { match history.entry(path.to_path_buf().clone()) { Entry::Occupied(mut entry) => { - ui::display_contents(win, entry.get_mut(), config_t, &ui::SECONDARY_DISPLAY_OPTION); + ui::display_contents( + win, + entry.get_mut(), + config_t, + &ui::SECONDARY_DISPLAY_OPTION, + ); } Entry::Vacant(entry) => { if let Ok(s) = JoshutoDirList::new(path.to_path_buf().clone(), &config_t.sort_option) { - ui::display_contents(win, entry.insert(s), config_t, &ui::SECONDARY_DISPLAY_OPTION); + ui::display_contents( + win, + entry.insert(s), + config_t, + &ui::SECONDARY_DISPLAY_OPTION, + ); } } } |