Simplify logic for writing to stderr.

This commit is contained in:
Corey Farwell 2016-10-09 13:54:45 -04:00
parent 804317c885
commit b564d0141d

View file

@ -435,9 +435,7 @@ pub enum OutputOptions {
}
fn args_fail(msg: &str) -> ! {
let mut stderr = io::stderr();
stderr.write_all(msg.as_bytes()).unwrap();
stderr.write_all(b"\n").unwrap();
writeln!(io::stderr(), "{}", msg).unwrap();
process::exit(1)
}