summaryrefslogtreecommitdiffstats
path: root/src/colours.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-29 11:34:57 +0100
committerBen S <ogham@bsago.me>2015-05-29 11:34:57 +0100
commit4d2d8686c881fb83e1a3ae0609a75c54b17fc845 (patch)
tree090ce77da530ba68559af8287b0b7e87bc9eb67d /src/colours.rs
parent334258c18d3f9a480368cab81133cdee2972398d (diff)
Use new ansi-term
- Plain -> Style::default()
Diffstat (limited to 'src/colours.rs')
-rw-r--r--src/colours.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/colours.rs b/src/colours.rs
index 2e51e61..5085290 100644
--- a/src/colours.rs
+++ b/src/colours.rs
@@ -1,5 +1,4 @@
use ansi_term::Style;
-use ansi_term::Style::Plain;
use ansi_term::Colour::{Red, Green, Yellow, Blue, Cyan, Purple, Fixed};
use std::default::Default;
@@ -98,7 +97,7 @@ impl Colours {
pub fn colourful() -> Colours {
Colours {
filetypes: FileTypes {
- normal: Plain,
+ normal: Style::default(),
directory: Blue.bold(),
symlink: Cyan.normal(),
special: Yellow.normal(),
@@ -126,7 +125,7 @@ impl Colours {
other_read: Yellow.normal(),
other_write: Red.normal(),
other_execute: Green.normal(),
- attribute: Plain,
+ attribute: Style::default(),
},
size: Size {
@@ -136,9 +135,9 @@ impl Colours {
users: Users {
user_you: Yellow.bold(),
- user_someone_else: Plain,
+ user_someone_else: Style::default(),
group_yours: Yellow.bold(),
- group_not_yours: Plain,
+ group_not_yours: Style::default(),
},
links: Links {
@@ -158,7 +157,7 @@ impl Colours {
date: Blue.normal(),
inode: Purple.normal(),
blocks: Cyan.normal(),
- header: Plain.underline(),
+ header: Style::default().underline(),
symlink_path: Cyan.normal(),
broken_arrow: Red.normal(),