reduced overhead by passing an owned string

This commit is contained in:
2025-12-13 22:20:54 +01:00
parent 0a08ad2cae
commit 2eddd7fdc2
36 changed files with 66 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
use iter_first_max::IterFirstMaxExt;
pub fn solve(puzzle: String) -> u64 {
pub fn solve(puzzle: &str) -> u64 {
let mut solution: u64 = 0;
puzzle.lines().for_each(|battery_bank| {