mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-02-02 18:48:24 +00:00
to_ascii_lower -> to_ascii_lowercase
This commit is contained in:
parent
e3a8342173
commit
fdf95fc206
@ -99,7 +99,7 @@ impl<'a> HasType for File<'a> {
|
||||
return Immediate;
|
||||
}
|
||||
else if let Some(ref e) = self.ext {
|
||||
let ext = e.as_slice().to_ascii_lower();
|
||||
let ext = e.as_slice().to_ascii_lowercase();
|
||||
if IMAGE_TYPES.iter().any(|&s| s == ext) {
|
||||
return Image;
|
||||
}
|
||||
|
@ -159,8 +159,8 @@ impl Options {
|
||||
SortField::Size => files.sort_by(|a, b| a.stat.size.cmp(&b.stat.size)),
|
||||
SortField::FileInode => files.sort_by(|a, b| a.stat.unstable.inode.cmp(&b.stat.unstable.inode)),
|
||||
SortField::Extension => files.sort_by(|a, b| {
|
||||
let exts = a.ext.clone().map(|e| e.to_ascii_lower()).cmp(&b.ext.clone().map(|e| e.to_ascii_lower()));
|
||||
let names = a.name.to_ascii_lower().cmp(&b.name.to_ascii_lower());
|
||||
let exts = a.ext.clone().map(|e| e.to_ascii_lowercase()).cmp(&b.ext.clone().map(|e| e.to_ascii_lowercase()));
|
||||
let names = a.name.to_ascii_lowercase().cmp(&b.name.to_ascii_lowercase());
|
||||
exts.cmp(&names)
|
||||
}),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user