mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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) -> ! {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue