about summary refs log tree commit diff
path: root/src/rustfmt_diff.rs
diff options
context:
space:
mode:
authorclippered <clarke_overkill@yahoo.com>2017-11-13 20:10:46 +1100
committerclippered <clarke_overkill@yahoo.com>2017-11-13 20:18:05 +1100
commit794a215b27688426b926529fc499f535e63eb40c (patch)
tree6fed0e4e3bf8866eae7f3b9bcc3e89ff20cc5797 /src/rustfmt_diff.rs
parentd2f2f2546358f60c22da98918535cd932589de5c (diff)
rename to use_colored_tty; used match as well
Diffstat (limited to 'src/rustfmt_diff.rs')
-rw-r--r--src/rustfmt_diff.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustfmt_diff.rs b/src/rustfmt_diff.rs
index 858fb876f6e..daad73dc6ab 100644
--- a/src/rustfmt_diff.rs
+++ b/src/rustfmt_diff.rs
@@ -13,7 +13,7 @@ use diff;
 use std::collections::VecDeque;
 use std::io;
 use term;
-use utils::iscolored;
+use utils::use_colored_tty;
 
 #[derive(Debug, PartialEq)]
 pub enum DiffLine {
@@ -102,7 +102,7 @@ where
     F: Fn(u32) -> String,
 {
     match term::stdout() {
-        Some(ref t) if iscolored(color) && t.supports_color() => {
+        Some(ref t) if use_colored_tty(color) && t.supports_color() => {
             print_diff_fancy(diff, get_section_title, term::stdout().unwrap())
         }
         _ => print_diff_basic(diff, get_section_title),