diff options
| author | clippered <clarke_overkill@yahoo.com> | 2017-11-13 20:10:46 +1100 |
|---|---|---|
| committer | clippered <clarke_overkill@yahoo.com> | 2017-11-13 20:18:05 +1100 |
| commit | 794a215b27688426b926529fc499f535e63eb40c (patch) | |
| tree | 6fed0e4e3bf8866eae7f3b9bcc3e89ff20cc5797 /src/rustfmt_diff.rs | |
| parent | d2f2f2546358f60c22da98918535cd932589de5c (diff) | |
rename to use_colored_tty; used match as well
Diffstat (limited to 'src/rustfmt_diff.rs')
| -rw-r--r-- | src/rustfmt_diff.rs | 4 |
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), |
