Day18 remove debug prints

This commit is contained in:
Daniel S. 2020-12-19 01:11:29 +01:00
parent 054ca54991
commit 2c03f7e745

View file

@ -63,7 +63,6 @@ impl RPN {
} }
fn eval(&self) -> i64 { fn eval(&self) -> i64 {
println!("{:?}", self.0);
let mut stack = vec![]; let mut stack = vec![];
for token in &self.0 { for token in &self.0 {
match token { match token {
@ -108,7 +107,6 @@ pub fn input_generator(input: &str) -> Vec<Vec<Token>> {
let exprs: Vec<Vec<Token>> = input let exprs: Vec<Vec<Token>> = input
.lines() .lines()
.map(|l| { .map(|l| {
println!("parsing: {:?}", l);
l.replace("(", "( ") l.replace("(", "( ")
.replace(")", " )") .replace(")", " )")
.split_ascii_whitespace() .split_ascii_whitespace()