aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-14 17:49:08 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-14 17:49:08 -0400
commitb9c09de9f20b78601710470e12d798b8656d8d00 (patch)
treef3272321f0c13fc426dee9d87aa017eca174afe8
parent1769620134a3ca3cddddbec13215736f489ec13b (diff)
downloadfancy-prompt-b9c09de9f20b78601710470e12d798b8656d8d00.tar.gz
fancy-prompt-b9c09de9f20b78601710470e12d798b8656d8d00.zip
use the more generic Terminal trait here
-rw-r--r--src/colors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/colors.rs b/src/colors.rs
index 182ea23..15155cc 100644
--- a/src/colors.rs
+++ b/src/colors.rs
@@ -137,9 +137,9 @@ impl Colors {
})
}
- fn print_color(
+ fn print_color<W: std::io::Write>(
&self,
- t: &mut term::StdoutTerminal,
+ t: &mut term::Terminal<Output=W>,
color: Option<&term::color::Color>,
) {
self.print_wrapped(|| {