aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modelica-parser-lalrpop/examples/parse_file.rs3
-rw-r--r--src/bin/mt-tool.rs3
-rw-r--r--src/bin/mt-webface.rs3
3 files changed, 3 insertions, 6 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..] {
diff --git a/src/bin/mt-tool.rs b/src/bin/mt-tool.rs
index b6763b2..c04d5ab 100644
--- a/src/bin/mt-tool.rs
+++ b/src/bin/mt-tool.rs
@@ -12,7 +12,6 @@ use std::io::Read;
use std::fs::File;
use std::path::Path;
use std::time::Instant;
-use std::process::exit;
fn parse_modelica_files(paths: Vec<String>) {
@@ -97,7 +96,7 @@ fn main() {
_ => {
println!("Missing or unimplemented command!");
println!("{}", matches.usage());
- exit(-1);
+ ::std::process::exit(-1);
},
}
}
diff --git a/src/bin/mt-webface.rs b/src/bin/mt-webface.rs
index 3b280e2..b35deec 100644
--- a/src/bin/mt-webface.rs
+++ b/src/bin/mt-webface.rs
@@ -10,7 +10,6 @@ extern crate log;
use std::env;
use std::collections::BTreeMap;
-use std::process::exit;
use std::path::Path;
use getopts::Options;
use pencil::Pencil;
@@ -87,7 +86,7 @@ fn main() {
Err(f) => {
println!("{}\n", f.to_string());
print_usage(opts);
- exit(-1);
+ ::std::process::exit(-1);
}
};