summaryrefslogtreecommitdiff
path: root/src/entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.rs')
-rw-r--r--src/entry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entry.rs b/src/entry.rs
index 6ea78bc..b59ced5 100644
--- a/src/entry.rs
+++ b/src/entry.rs
@@ -37,8 +37,8 @@ impl Entry {
};
let name = match path.file_name() {
- Some(osstr) => osstr.to_string_lossy().to_string(),
- None => unreachable!(),
+ Some(os_str) => os_str.to_string_lossy().to_string(),
+ None => path.to_string_lossy().to_string(),
};
let extension = match path.extension() {
Some(extension) => extension.to_string_lossy().into(),