From 370417923863ee027de9165789135d4396b8e26b Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Thu, 1 Dec 2022 21:41:54 +0000 Subject: [PATCH] tidy up --- src/day_1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/day_1.rs b/src/day_1.rs index dec85dc..8da50e7 100644 --- a/src/day_1.rs +++ b/src/day_1.rs @@ -1,4 +1,4 @@ -pub fn part_1(input: &String) -> String { +pub fn part_1(input: &String) -> u64 { let elves: Vec<&str> = input.split("\n\n").collect(); let mut highest_calorie_count: u64 = 0; @@ -15,7 +15,7 @@ pub fn part_1(input: &String) -> String { } } - format!("{highest_calorie_count}") + highest_calorie_count } pub fn part_2(input: &String) -> u64 {