mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Simplify logic for writing to stderr.
This commit is contained in:
parent
804317c885
commit
b564d0141d
1 changed files with 1 additions and 3 deletions
|
@ -435,9 +435,7 @@ pub enum OutputOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn args_fail(msg: &str) -> ! {
|
fn args_fail(msg: &str) -> ! {
|
||||||
let mut stderr = io::stderr();
|
writeln!(io::stderr(), "{}", msg).unwrap();
|
||||||
stderr.write_all(msg.as_bytes()).unwrap();
|
|
||||||
stderr.write_all(b"\n").unwrap();
|
|
||||||
process::exit(1)
|
process::exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue