day03: clean up debug printing a bit

This commit is contained in:
2025-12-03 22:20:12 -05:00
parent 3a305e1bce
commit df96d619b9
2 changed files with 4 additions and 3 deletions

View File

@@ -44,10 +44,11 @@ fn largest_output_joltage<const N: usize>(input: &str) -> Result<u64> {
}
}
}
debug!(line, batteries = ?batteries.map(|b| b.joltage));
output_joltage += batteries
let line_joltage = batteries
.iter()
.fold(0u64, |acc, &b| acc * 10 + b.joltage as u64);
debug!(line, line_joltage);
output_joltage += line_joltage;
}
Ok(output_joltage)
}