remove println debugging
parent
df1e26462d
commit
62099a8bfc
|
@ -55,7 +55,6 @@ fn letter_digit_at(line: &str, index: usize) -> Option<u32> {
|
|||
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<u32> {
|
|||
}
|
||||
}
|
||||
let num = first_digit * 10 + second_digit;
|
||||
println!("line {} num {}", line, num);
|
||||
Some(num)
|
||||
} else {
|
||||
None
|
||||
|
|
|
@ -70,7 +70,7 @@ fn parse(input: &str) -> Vec<Game> {
|
|||
"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 });
|
||||
|
|
|
@ -84,7 +84,6 @@ fn associate_parts(input: &str) -> PartList {
|
|||
}
|
||||
}
|
||||
}
|
||||
// println!("{:?}", result);
|
||||
result
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue