summaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/tui_footer.rs
diff options
context:
space:
mode:
authorKamiyaa <jeff.no.zhao@gmail.com>2020-06-06 15:00:15 -0400
committerKamiyaa <jeff.no.zhao@gmail.com>2020-06-06 15:00:15 -0400
commit4f3842b56f1729dcd8e81c77f98253ed9dfb23b3 (patch)
treea9cb1b5c300fcbdbcdfad34f0076919e30f03c88 /src/ui/widgets/tui_footer.rs
parenta462ebe2140323a6085ce5a064727288fa4dff3c (diff)
shell command now parses correctly
- rework file operations - simpler model for listening on io_worker progress - cargo fmt/clippy
Diffstat (limited to 'src/ui/widgets/tui_footer.rs')
-rw-r--r--src/ui/widgets/tui_footer.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ui/widgets/tui_footer.rs b/src/ui/widgets/tui_footer.rs
index 6cb8a70..e8297ed 100644
--- a/src/ui/widgets/tui_footer.rs
+++ b/src/ui/widgets/tui_footer.rs
@@ -49,12 +49,9 @@ impl<'a> Widget for TuiFooter<'a> {
Text::raw(mimetype),
];
- match &self.entry.metadata.file_type {
- FileType::Symlink(s) => {
- text.push(Text::styled(" -> ", mode_style));
- text.push(Text::styled(s, mode_style));
- }
- _ => {}
+ if let FileType::Symlink(s) = &self.entry.metadata.file_type {
+ text.push(Text::styled(" -> ", mode_style));
+ text.push(Text::styled(s, mode_style));
}
Paragraph::new(text.iter()).wrap(true).render(area, buf);