File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 4
4
// This project is MIT licensed.
5
5
// Please see the COPYING file for more information.
6
6
7
- // These are unstable for now
8
- #![ feature( exit_status) ]
9
-
10
7
extern crate xml;
11
8
use std:: fs:: File ;
12
9
use std:: io:: Read ;
@@ -25,8 +22,7 @@ fn main() {
25
22
Ok ( file) => file,
26
23
Err ( err) => {
27
24
println ! ( "Couldn't open file: {}" , err) ;
28
- std:: env:: set_exit_status ( 1 ) ;
29
- return ;
25
+ std:: process:: exit ( 1 ) ;
30
26
}
31
27
} ;
32
28
@@ -36,8 +32,7 @@ fn main() {
36
32
let mut string = String :: new ( ) ;
37
33
if let Err ( err) = rdr. read_to_string ( & mut string) {
38
34
println ! ( "Reading failed: {}" , err) ;
39
- std:: env:: set_exit_status ( 1 ) ;
40
- return ;
35
+ std:: process:: exit ( 1 ) ;
41
36
} ;
42
37
43
38
p. feed_str ( & string) ;
Original file line number Diff line number Diff line change 9
9
#![ forbid( non_camel_case_types) ]
10
10
#![ warn( missing_docs) ]
11
11
12
- // These are unstable for now
12
+ // Required for benchmarks
13
13
#![ cfg_attr( test, feature( test) ) ]
14
14
15
15
/*!
You can’t perform that action at this time.
0 commit comments