summaryrefslogtreecommitdiffstats
path: root/src/filetype.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2014-07-01 19:00:36 +0100
committerBen S <ogham@bsago.me>2014-07-01 19:00:36 +0100
commitd2647df0ca5a41b2d87c5062c51167b3408d5e88 (patch)
treeef77d243cc640c1a5c8acf121abdf174958586c8 /src/filetype.rs
parenteecfd8836359e66dd1f20c1d387fc3ffa0c39f9a (diff)
Move some stuff out to rust-ansi-term crate
Diffstat (limited to 'src/filetype.rs')
-rw-r--r--src/filetype.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filetype.rs b/src/filetype.rs
index d6e2ef0..2db1466 100644
--- a/src/filetype.rs
+++ b/src/filetype.rs
@@ -1,7 +1,10 @@
-use colours::{Plain, Style, Red, Green, Yellow, Blue, Cyan, Grey, Fixed};
use file::File;
use std::io;
+use ansi_term::{Colour, Plain, Style, Red, Green, Yellow, Blue, Cyan, Fixed};
+
+static Grey: Colour = Fixed(244);
+
pub enum FileType {
Normal, Directory, Executable, Immediate, Compiled, Symlink, Special,
Image, Video, Music, Lossless, Compressed, Document, Temp, Crypto,
@@ -136,4 +139,3 @@ impl<'a> HasType for File<'a> {
return Normal; // no filetype
}
}
-