From cfb0fa9b724481fb135e337eb45df5f9713b6457 Mon Sep 17 00:00:00 2001 From: Ben S Date: Fri, 4 Jul 2014 09:54:14 +0100 Subject: [PATCH] Import Paint trait from rust-ansi-term --- src/exa.rs | 2 +- src/file.rs | 2 +- src/filetype.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exa.rs b/src/exa.rs index 5ac079b..20cb369 100644 --- a/src/exa.rs +++ b/src/exa.rs @@ -10,7 +10,7 @@ use dir::Dir; use options::Options; use unix::Unix; -use ansi_term::{Plain, strip_formatting}; +use ansi_term::{Paint, Plain, strip_formatting}; pub mod column; pub mod dir; diff --git a/src/file.rs b/src/file.rs index d21b930..e7d12c2 100644 --- a/src/file.rs +++ b/src/file.rs @@ -2,7 +2,7 @@ use std::io::{fs, IoResult}; use std::io; use std::str::from_utf8_lossy; -use ansi_term::{Colour, Plain, Style, Red, Green, Yellow, Blue, Purple, Cyan, Fixed}; +use ansi_term::{Paint, Colour, Plain, Style, Red, Green, Yellow, Blue, Purple, Cyan, Fixed}; use column::{Column, Permissions, FileName, FileSize, User, Group, HardLinks, Inode, Blocks}; use format::{format_metric_bytes, format_IEC_bytes}; diff --git a/src/filetype.rs b/src/filetype.rs index 2db1466..e00bcc1 100644 --- a/src/filetype.rs +++ b/src/filetype.rs @@ -1,7 +1,7 @@ use file::File; use std::io; -use ansi_term::{Colour, Plain, Style, Red, Green, Yellow, Blue, Cyan, Fixed}; +use ansi_term::{Paint, Colour, Plain, Style, Red, Green, Yellow, Blue, Cyan, Fixed}; static Grey: Colour = Fixed(244);