summaryrefslogtreecommitdiffstats
path: root/src/column.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-12 03:02:38 +0100
committerBen S <ogham@bsago.me>2015-05-12 03:02:38 +0100
commit5af0f5793e09a6a33a3a2134b4f847eb81a9fd94 (patch)
tree91ccff1739bd98be2bdc99c1c03a0595218da59d /src/column.rs
parent7f48748e7061fdaaea2f1c47302ed7d51f0567b5 (diff)
Remove year field on timestamp column
It's now in the locals of the Table struct, and didn't really belong in the column anyway.
Diffstat (limited to 'src/column.rs')
-rw-r--r--src/column.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/column.rs b/src/column.rs
index 73692e3..4bacba1 100644
--- a/src/column.rs
+++ b/src/column.rs
@@ -11,7 +11,7 @@ use unicode_width::UnicodeWidthStr;
pub enum Column {
Permissions,
FileSize(SizeFormat),
- Timestamp(TimeType, i64),
+ Timestamp(TimeType),
Blocks,
User,
Group,
@@ -46,15 +46,15 @@ impl Column {
/// to have a header row printed.
pub fn header(&self) -> &'static str {
match *self {
- Column::Permissions => "Permissions",
- Column::FileSize(_) => "Size",
- Column::Timestamp(t, _) => t.header(),
- Column::Blocks => "Blocks",
- Column::User => "User",
- Column::Group => "Group",
- Column::HardLinks => "Links",
- Column::Inode => "inode",
- Column::GitStatus => "Git",
+ Column::Permissions => "Permissions",
+ Column::FileSize(_) => "Size",
+ Column::Timestamp(t) => t.header(),
+ Column::Blocks => "Blocks",
+ Column::User => "User",
+ Column::Group => "Group",
+ Column::HardLinks => "Links",
+ Column::Inode => "inode",
+ Column::GitStatus => "Git",
}
}
}