diff options
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) }; } } |
