From 637d4fbc88d5a96eec198181769c959565b397ba Mon Sep 17 00:00:00 2001 From: calcu1on Date: Sat, 29 Mar 2025 21:23:32 -0400 Subject: [PATCH] Adding day 4 todo. --- 2024/rust/src/day4.rs | 15 +++++++++++++++ 2024/rust/src/main.rs | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 2024/rust/src/day4.rs diff --git a/2024/rust/src/day4.rs b/2024/rust/src/day4.rs new file mode 100644 index 0000000..ef8b0da --- /dev/null +++ b/2024/rust/src/day4.rs @@ -0,0 +1,15 @@ +use crate::Solution; + +pub fn run_day_4() -> Solution { + + // Lets solve day 4 here! + + let solution = Solution { + day: 4, + answer_1: "test".to_string(), + answer_2: "another".to_string(), + }; + + solution + +} diff --git a/2024/rust/src/main.rs b/2024/rust/src/main.rs index 4d18500..fa2bf5d 100644 --- a/2024/rust/src/main.rs +++ b/2024/rust/src/main.rs @@ -5,6 +5,7 @@ use tabled::{Table, Tabled}; pub mod day1; pub mod day2; pub mod day3; +pub mod day4; #[derive(Tabled)] pub struct Solution { @@ -33,12 +34,11 @@ fn main() { let day1 = day1::run_day_1(); let day2 = day2::run_day_2(); let day3 = day3::run_day_3(); + let day4 = day4::run_day_4(); rows.push(day1); rows.push(day2); rows.push(day3); - + rows.push(day4); let table = Table::new(rows); - print!("{}", table); - }