Use println!("...") instead of print!("...\n")
And also use exit without module path.
This commit is contained in:
parent
def2b4fb92
commit
226a0f1aff
|
@ -355,8 +355,8 @@ fn main() {
|
|||
let ast = match parse(&input_file) {
|
||||
Ok(x) => x,
|
||||
Err(x) => {
|
||||
print!("{:#?}\n", x);
|
||||
std::process::exit(1);
|
||||
println!("{:#?}", x);
|
||||
exit(1);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user