mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-15 16:57:08 +00:00
Minor whitespace changes
This commit is contained in:
parent
b0d4c9728f
commit
2a3045ddfa
@ -139,13 +139,13 @@ impl FileFilter {
|
||||
SortField::Name => files.sort_by(|a, b| natord::compare(&*a.name, &*b.name)),
|
||||
SortField::Size => files.sort_by(|a, b| a.stat.len().cmp(&b.stat.len())),
|
||||
SortField::FileInode => files.sort_by(|a, b| a.stat.as_raw().ino().cmp(&b.stat.as_raw().ino())),
|
||||
SortField::Extension => files.sort_by(|a, b| match a.ext.cmp(&b.ext) {
|
||||
Ordering::Equal => natord::compare(&*a.name, &*b.name),
|
||||
order => order
|
||||
}),
|
||||
SortField::ModifiedDate => files.sort_by(|a, b| a.stat.as_raw().mtime().cmp(&b.stat.as_raw().mtime())),
|
||||
SortField::AccessedDate => files.sort_by(|a, b| a.stat.as_raw().atime().cmp(&b.stat.as_raw().atime())),
|
||||
SortField::CreatedDate => files.sort_by(|a, b| a.stat.as_raw().ctime().cmp(&b.stat.as_raw().ctime())),
|
||||
SortField::Extension => files.sort_by(|a, b| match a.ext.cmp(&b.ext) {
|
||||
Ordering::Equal => natord::compare(&*a.name, &*b.name),
|
||||
order => order,
|
||||
}),
|
||||
}
|
||||
|
||||
if self.reverse {
|
||||
|
@ -142,7 +142,6 @@ impl Table {
|
||||
users: OSUsers::empty_cache(),
|
||||
colours: colours,
|
||||
current_year: LocalDateTime::now().year(),
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -173,7 +172,7 @@ impl Table {
|
||||
children: file.this.is_some(),
|
||||
};
|
||||
|
||||
self.rows.push(row)
|
||||
self.rows.push(row);
|
||||
}
|
||||
|
||||
/// Use the list of columns to find which cells should be produced for
|
||||
|
Loading…
Reference in New Issue
Block a user