mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move to new io in util.
This commit is contained in:
parent
ce3f777a12
commit
573f721714
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ use getopts;
|
|||
use std::collections::HashSet;
|
||||
use std::cmp;
|
||||
use std::env;
|
||||
use std::old_io as io;
|
||||
use std::io::{self, Write};
|
||||
use std::mem;
|
||||
use std::ptr;
|
||||
use std::rt;
|
||||
|
@ -156,7 +156,9 @@ pub fn print_debug_usage(app: &str) {
|
|||
}
|
||||
|
||||
fn args_fail(msg: &str) {
|
||||
io::stderr().write_line(msg).unwrap();
|
||||
let mut stderr = io::stderr();
|
||||
stderr.write_all(msg.as_bytes()).unwrap();
|
||||
stderr.write_all(b"\n").unwrap();
|
||||
env::set_exit_status(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue