summaryrefslogtreecommitdiffstats
path: root/src/util/style.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/style.rs')
-rw-r--r--src/util/style.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/style.rs b/src/util/style.rs
index 0373c0c..de5a622 100644
--- a/src/util/style.rs
+++ b/src/util/style.rs
@@ -122,9 +122,7 @@ fn file_style(entry: &JoshutoDirEntry) -> Style {
.add_modifier(THEME_T.executable.modifier)
} else {
entry
- .file_path()
- .extension()
- .and_then(|s| s.to_str())
+ .ext()
.and_then(|s| THEME_T.ext.get(s))
.map(|theme| {
Style::default()