diff options
author | Ben S <ogham@bsago.me> | 2015-01-26 00:27:06 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-01-26 00:27:06 +0000 |
commit | 22a4dc90b995192604a8183931d0ddad4dea6cf8 (patch) | |
tree | 8eab67dab63922e695bd682d1490327c8cc6780f /src/column.rs | |
parent | 8e33c753555e9b4740c3cc2deb9efad2accd9e12 (diff) |
Update #[derive] names
Diffstat (limited to 'src/column.rs')
-rw-r--r-- | src/column.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/column.rs b/src/column.rs index 881712d..8e97aac 100644 --- a/src/column.rs +++ b/src/column.rs @@ -2,7 +2,7 @@ use std::iter::repeat; use ansi_term::Style; -#[derive(PartialEq, Show)] +#[derive(PartialEq, Debug, Copy)] pub enum Column { Permissions, FileName, @@ -14,25 +14,20 @@ pub enum Column { Inode, } -impl Copy for Column { } - -#[derive(PartialEq, Show)] +#[derive(PartialEq, Debug, Copy)] pub enum SizeFormat { DecimalBytes, BinaryBytes, JustBytes, } -impl Copy for SizeFormat { } - /// Each column can pick its own **Alignment**. Usually, numbers are /// right-aligned, and text is left-aligned. +#[derive(Copy)] pub enum Alignment { Left, Right, } -impl Copy for Alignment { } - impl Column { /// Get the alignment this column should use. |