Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,20 @@ impl WriteColor for io::Sink {
}
}

impl WriteColor for io::Empty {
fn supports_color(&self) -> bool {
false
}

fn set_color(&mut self, _: &ColorSpec) -> io::Result<()> {
Ok(())
}

fn reset(&mut self) -> io::Result<()> {
Ok(())
}
}

/// An in-memory buffer that provides Windows console coloring.
///
/// This doesn't actually communicate with the Windows console. Instead, it
Expand Down