Browse Source

Use colour traits when possible

Benjamin Sago 8 years ago
parent
commit
91334d601c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/output/details.rs

+ 3 - 1
src/output/details.rs

@@ -327,12 +327,14 @@ impl<'a> Render<'a> {
     }
 
     fn render_error(&self, error: &IOError, tree: TreeParams, path: Option<PathBuf>) -> Row {
+        use output::file_name::Colours;
+
         let error_message = match path {
             Some(path) => format!("<{}: {}>", path.display(), error),
             None       => format!("<{}>", error),
         };
 
-        let name = TextCell::paint(self.colours.broken_arrow, error_message);
+        let name = TextCell::paint(self.colours.broken_arrow(), error_message);
         Row { cells: None, name, tree }
     }