Improved formatting

This commit is contained in:
Max Nuding 2022-12-02 04:36:50 +00:00
parent beeb89a2f6
commit 77cb399748

View File

@ -1,16 +1,16 @@
use chrono::prelude::*;
use std::path::Path; use std::path::Path;
use std::time::Instant; use std::time::Instant;
use chrono::prelude::*;
mod day01; mod day01;
mod day02; mod day02;
fn main() { fn main() {
let today = Local::now().day(); let today = Local::now().day();
let now = Instant::now(); let now = Instant::now();
if cfg!(feature ="day01") || (cfg!(feature ="today") && today == 1) { if cfg!(feature = "day01") || (cfg!(feature = "today") && today == 1) {
day01::run(); day01::run();
} }
if cfg!(feature ="day02") || (cfg!(feature ="today") && today == 2) { if cfg!(feature = "day02") || (cfg!(feature = "today") && today == 2) {
day02::run(); day02::run();
} }
println!("Finished, time taken: {:?}", now.elapsed()) println!("Finished, time taken: {:?}", now.elapsed())