Skip to content

Commit

Permalink
syntax: update for libterm fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed May 16, 2014
1 parent f923b93 commit e3d0e5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libsyntax/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>),
}

Expand All @@ -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 {
Expand Down

0 comments on commit e3d0e5e

Please sign in to comment.