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) {
|
let ast = match parse(&input_file) {
|
||||||
Ok(x) => x,
|
Ok(x) => x,
|
||||||
Err(x) => {
|
Err(x) => {
|
||||||
print!("{:#?}\n", x);
|
println!("{:#?}", x);
|
||||||
std::process::exit(1);
|
exit(1);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user