Adding day 4 todo.
This commit is contained in:
parent
4e23bf3084
commit
637d4fbc88
15
2024/rust/src/day4.rs
Normal file
15
2024/rust/src/day4.rs
Normal file
@ -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
|
||||
|
||||
}
|
||||
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user