diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-05-21 15:32:27 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-05-21 15:32:27 +1200 |
| commit | 6541be3c6f2a8f4f5f5ccd29a793f8ea700a5786 (patch) | |
| tree | abf3635c2fab3042f379924e9b7a6e698addaed5 /src/rustfmt_diff.rs | |
| parent | 9a7fac63c8867fc5cf45b3f262f2e385f6992fb3 (diff) | |
Replace `use_colored_tty` with iatty crate
Diffstat (limited to 'src/rustfmt_diff.rs')
| -rw-r--r-- | src/rustfmt_diff.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rustfmt_diff.rs b/src/rustfmt_diff.rs index 33d7febbd64..de52b28c08b 100644 --- a/src/rustfmt_diff.rs +++ b/src/rustfmt_diff.rs @@ -13,7 +13,6 @@ use diff; use std::collections::VecDeque; use std::io; use std::io::Write; -use utils::use_colored_tty; #[derive(Debug, PartialEq)] pub enum DiffLine { @@ -53,7 +52,7 @@ impl OutputWriter { // for colorized output and the capabilities of the terminal. pub fn new(color: Color) -> Self { if let Some(t) = term::stdout() { - if use_colored_tty(color) && t.supports_color() { + if color.use_colored_tty() && t.supports_color() { return OutputWriter { terminal: Some(t) }; } } |
