From 226a0f1aff6f3559a470aa7b2178202ce687ba15 Mon Sep 17 00:00:00 2001 From: jn Date: Thu, 2 Feb 2023 02:30:36 +0100 Subject: [PATCH] Use println!("...") instead of print!("...\n") And also use exit without module path. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ecbcce4..4b60971 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); }, };