summaryrefslogtreecommitdiffstats
path: root/src/config/clean/app/display/sort_type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/clean/app/display/sort_type.rs')
-rw-r--r--src/config/clean/app/display/sort_type.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/clean/app/display/sort_type.rs b/src/config/clean/app/display/sort_type.rs
index 3041951..6741e04 100644
--- a/src/config/clean/app/display/sort_type.rs
+++ b/src/config/clean/app/display/sort_type.rs
@@ -123,8 +123,8 @@ fn size_sort(file1: &JoshutoDirEntry, file2: &JoshutoDirEntry) -> cmp::Ordering
}
fn ext_sort(file1: &JoshutoDirEntry, file2: &JoshutoDirEntry) -> cmp::Ordering {
- let f1_ext = file1.get_ext();
- let f2_ext = file2.get_ext();
+ let f1_ext = file1.ext().unwrap_or_default();
+ let f2_ext = file2.ext().unwrap_or_default();
alphanumeric_sort::compare_str(f1_ext, f2_ext)
}