Skip to content

Instantly share code, notes, and snippets.

@daschl
Created August 28, 2015 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daschl/46e6e0f4d46338bbbb47 to your computer and use it in GitHub Desktop.
Save daschl/46e6e0f4d46338bbbb47 to your computer and use it in GitHub Desktop.
src/main.rs:76:14: 76:21 error: expected a literal
src/main.rs:76 writeln!(t, message).unwrap();
fn warn(message: &str) {
let mut t = term::stdout().unwrap();
t.fg(term::color::YELLOW).unwrap();
writeln!(t, message).unwrap();
t.reset().unwrap()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment