aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/opts.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-28 20:00:13 +0100
committerMs2ger <ms2ger@gmail.com>2015-03-28 20:02:23 +0100
commit573f7217145d6658824abc36616aa7560bd7eb2d (patch)
treea5ce7d579496bcc448232642c1feda7e1c1c90f8 /components/util/opts.rs
parentce3f777a12212604ec5cb56a0145f3cf8fca9ea7 (diff)
downloadservo-573f7217145d6658824abc36616aa7560bd7eb2d.tar.gz
servo-573f7217145d6658824abc36616aa7560bd7eb2d.zip
Move to new io in util.
Diffstat (limited to 'components/util/opts.rs')
-rw-r--r--components/util/opts.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs
index 25bd06e61f4..b03a6bfbbc3 100644
--- a/components/util/opts.rs
+++ b/components/util/opts.rs
@@ -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);
}