syntax: update for libterm fallout

This commit is contained in:
Corey Richardson 2014-04-08 11:54:54 -04:00
parent f923b93694
commit e3d0e5e2f2

View File

@ -259,7 +259,7 @@ pub struct EmitterWriter {
}
enum Destination {
Terminal(term::Terminal<io::stdio::StdWriter>),
Terminal(~term::Terminal<~Writer:Send>:Send),
Raw(Box<Writer:Send>),
}
@ -274,9 +274,9 @@ impl EmitterWriter {
};
if use_color {
let dst = match term::Terminal::new(stderr.unwrap()) {
Ok(t) => Terminal(t),
Err(..) => Raw(box io::stderr()),
let dst = match term::stderr() {
Some(t) => Terminal(t),
None => Raw(box stderr),
};
EmitterWriter { dst: dst }
} else {