From d4e49815052a24e050aaf5a59214bab18bf1ede1 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 27 Dec 2016 19:01:15 +0100 Subject: call ::std::process::exit() directly --- modelica-parser-lalrpop/examples/parse_file.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modelica-parser-lalrpop') 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..] { -- cgit v1.2.3