diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-05-14 17:49:08 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-05-14 17:49:08 -0400 |
commit | b9c09de9f20b78601710470e12d798b8656d8d00 (patch) | |
tree | f3272321f0c13fc426dee9d87aa017eca174afe8 | |
parent | 1769620134a3ca3cddddbec13215736f489ec13b (diff) | |
download | fancy-prompt-b9c09de9f20b78601710470e12d798b8656d8d00.tar.gz fancy-prompt-b9c09de9f20b78601710470e12d798b8656d8d00.zip |
use the more generic Terminal trait here
-rw-r--r-- | src/colors.rs | 4 |
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(|| { |