aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/examples
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-27 19:01:15 +0100
committerbnewbold <bnewbold@robocracy.org>2016-12-27 19:01:15 +0100
commitd4e49815052a24e050aaf5a59214bab18bf1ede1 (patch)
treee3fdddce2dba7e0e2ec9f03f4f96e7050bab1d17 /modelica-parser-lalrpop/examples
parentf97396ea89704ff2ccab28d7b27ceeeb3201ddd0 (diff)
downloadmodelthing-d4e49815052a24e050aaf5a59214bab18bf1ede1.tar.gz
modelthing-d4e49815052a24e050aaf5a59214bab18bf1ede1.zip
call ::std::process::exit() directly
Diffstat (limited to 'modelica-parser-lalrpop/examples')
-rw-r--r--modelica-parser-lalrpop/examples/parse_file.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/modelica-parser-lalrpop/examples/parse_file.rs b/modelica-parser-lalrpop/examples/parse_file.rs
index bac22f1..66a669b 100644
--- a/modelica-parser-lalrpop/examples/parse_file.rs
+++ b/modelica-parser-lalrpop/examples/parse_file.rs
@@ -4,7 +4,6 @@ extern crate modelica_parser;
use std::env;
use std::io::Read;
use std::fs::File;
-use std::process::exit;
fn main() {
@@ -13,7 +12,7 @@ fn main() {
if args.len() <= 1 {
println!("I'm a modelica parser! Pass me one or more files to parse...");
- exit(-1);
+ ::std::process::exit(-1);
}
for input in &args[1..] {