mirror of
https://github.com/eza-community/eza
synced 2024-07-01 07:24:50 +00:00
Revert "lint: remove unecessary option (but refrain from adding another trait impl)"
This reverts commit 7ac0afa63a
.
This commit is contained in:
parent
7ac0afa63a
commit
24ec6931ed
|
@ -533,11 +533,11 @@ impl<'dir> File<'dir> {
|
|||
}
|
||||
|
||||
let duration = Duration::new(sec.unsigned_abs(), nanosec.unsigned_abs() as u32);
|
||||
UNIX_EPOCH - duration
|
||||
Some(UNIX_EPOCH - duration)
|
||||
}
|
||||
else {
|
||||
let duration = Duration::new(sec as u64, nanosec as u32);
|
||||
UNIX_EPOCH + duration
|
||||
Some(UNIX_EPOCH + duration)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -563,7 +563,7 @@ impl<'a> Table<'a> {
|
|||
file.modified_time().render(self.theme.ui.date, &self.env.tz, self.time_format)
|
||||
}
|
||||
Column::Timestamp(TimeType::Changed) => {
|
||||
Some(file.changed_time()).render(self.theme.ui.date, &self.env.tz, self.time_format)
|
||||
file.changed_time().render(self.theme.ui.date, &self.env.tz, self.time_format)
|
||||
}
|
||||
Column::Timestamp(TimeType::Created) => {
|
||||
file.created_time().render(self.theme.ui.date, &self.env.tz, self.time_format)
|
||||
|
|
Loading…
Reference in New Issue
Block a user