Use println!("...") instead of print!("...\n")

And also use exit without module path.
This commit is contained in:
jn 2023-02-02 02:30:36 +01:00
parent def2b4fb92
commit 226a0f1aff

View File

@ -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);
},
};