From 62099a8bfc1f0a4353f33ef0d23ba3cd93e865cb Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Fri, 8 Dec 2023 13:44:26 -0500 Subject: [PATCH] remove println debugging --- 2023/src/day01.rs | 2 -- 2023/src/day02.rs | 2 +- 2023/src/day03.rs | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/2023/src/day01.rs b/2023/src/day01.rs index 76806e9..2ee7616 100644 --- a/2023/src/day01.rs +++ b/2023/src/day01.rs @@ -55,7 +55,6 @@ fn letter_digit_at(line: &str, index: usize) -> Option { let index2 = index + d.len(); let substring: &str = line[index..index2].as_ref(); if *d == substring { - // println!("compare {} dindex {} d {}", index, dindex, d); return Some(dindex as u32); } } @@ -90,7 +89,6 @@ fn sub_letters_for_digits(input: &str) -> Vec { } } let num = first_digit * 10 + second_digit; - println!("line {} num {}", line, num); Some(num) } else { None diff --git a/2023/src/day02.rs b/2023/src/day02.rs index 64f6a3e..d87ed3d 100644 --- a/2023/src/day02.rs +++ b/2023/src/day02.rs @@ -70,7 +70,7 @@ fn parse(input: &str) -> Vec { "red" => red = count, "green" => green = count, "blue" => blue = count, - _ => println!("invalid color! {}", dice_parts[0]), + _ => panic!("invalid color! {}", dice_parts[0]), } } turns.push(Turn { red, green, blue }); diff --git a/2023/src/day03.rs b/2023/src/day03.rs index eb78864..bafe835 100644 --- a/2023/src/day03.rs +++ b/2023/src/day03.rs @@ -84,7 +84,6 @@ fn associate_parts(input: &str) -> PartList { } } } - // println!("{:?}", result); result }