From 0a4313bd1bfe7cee9c9135fb5078377f92d2fd99 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 23 Aug 2023 00:27:09 -0500 Subject: [PATCH] parser.rs: Remove obtrusive debug printing --- src/parser.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 34cadae..d50b741 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -115,13 +115,7 @@ pub(crate) mod root { Ok(Line::EndOfFile) => break, Ok(line) => lines.push(line), Err(e) => { - let ret = Self(lines); - eprintln!("{ret}"); - eprintln!("Error:{e}\n"); - eprint!("Remaining:"); - stream.for_each(|t| eprint!("{t}")); - eprintln!(); - return Err(Error::ParseError(ret, Box::new(e))); + return Err(Error::ParseError(Self(lines), Box::new(e))); } } }