From 61c433eab74d905c8abb1e79926e961f68117e14 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 8 Dec 2024 01:44:21 +0100 Subject: [PATCH] updated day one to reflext api changes --- src/bin/2023/01.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/2023/01.rs b/src/bin/2023/01.rs index 750436d..ee8716c 100644 --- a/src/bin/2023/01.rs +++ b/src/bin/2023/01.rs @@ -1,4 +1,4 @@ -use advent_of_code::strings::{get_numbers, get_string_numbers}; +use advent_of_code::strings::{convert_to_array, get_numbers, get_string_numbers}; #[allow(unused_imports)] use advent_of_code::{include_data, include_example}; @@ -7,7 +7,8 @@ include_data!(DATAb 2023 01b); fn main() { let mut sum: u32 = 0; - for coordinates in DATAa.split('\n').map(get_numbers) { + + for coordinates in convert_to_array::<_, _, '\n'>(DATAa, get_numbers::) { if coordinates.len() == 0 { continue; }