Minor whitespace changes

This commit is contained in:
Ben S 2015-05-12 03:14:56 +01:00
parent b0d4c9728f
commit 2a3045ddfa
3 changed files with 77 additions and 78 deletions

View File

@ -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 {

View File

@ -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