diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 15:02:56 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 15:02:56 -0400 |
commit | a521ceb379c34c854fb4e9848c0bcb7d28b46f4f (patch) | |
tree | c86e97529d19d60999828887bea8d60024b75a7e /src/sort.rs | |
parent | 735b51f6c350b97feb4f0f43bf3f9fc15858d1fd (diff) |
remove file_name_as_string
Diffstat (limited to 'src/sort.rs')
-rw-r--r-- | src/sort.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.rs b/src/sort.rs index 075677f..3e7826d 100644 --- a/src/sort.rs +++ b/src/sort.rs @@ -153,13 +153,13 @@ fn natural_sort_case_insensitive( f1: &structs::JoshutoDirEntry, f2: &structs::JoshutoDirEntry, ) -> cmp::Ordering { - let f1_name = f1.file_name_as_string.to_lowercase(); - let f2_name = f2.file_name_as_string.to_lowercase(); + let f1_name = f1.file_name.to_lowercase(); + let f2_name = f2.file_name.to_lowercase(); compare_str(&f1_name, &f2_name) } fn natural_sort(f1: &structs::JoshutoDirEntry, f2: &structs::JoshutoDirEntry) -> cmp::Ordering { - compare_str(&f1.file_name_as_string, &f2.file_name_as_string) + compare_str(&f1.file_name, &f2.file_name) } fn mtime_sort(file1: &structs::JoshutoDirEntry, file2: &structs::JoshutoDirEntry) -> cmp::Ordering { |