diff options
author | Benjamin Sago <ogham@bsago.me> | 2015-12-20 17:56:57 +1100 |
---|---|---|
committer | Benjamin Sago <ogham@bsago.me> | 2015-12-20 17:56:57 +1100 |
commit | 1b3492ce45552fa4335374ed6d3692992d00278b (patch) | |
tree | 116ce6b1f4374e6744f7aebee1f7bb0c179e1c84 /src/output/lines.rs | |
parent | 15cd67abe67ffeaef812f4080e1e35b06bf31784 (diff) |
Move colours module into output
This commit moves the colours module to be a sub-module of the output one.
This makes sense because finding which colour a certain file should be is only
done during output, and (I think) the only places that the `Colours` struct's
fields are ever queried is from the output module.
The only casualty was that the `file_colour` from the filetype module had to
be moved, as determining colours is no longer part of that module - only
determining filetype is. So it now reflects its name!
Diffstat (limited to 'src/output/lines.rs')
-rw-r--r-- | src/output/lines.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/lines.rs b/src/output/lines.rs index 39ef2c3..07c4351 100644 --- a/src/output/lines.rs +++ b/src/output/lines.rs @@ -1,9 +1,9 @@ -use colours::Colours; -use file::File; - use ansi_term::ANSIStrings; +use file::File; + use super::filename; +use super::colours::Colours; #[derive(Clone, Copy, Debug, PartialEq)] |