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::time::Instant;
use chrono::prelude::*;
mod day01;
mod day02;
fn main() {
let today = Local::now().day();
let now = Instant::now();
if cfg!(feature ="day01") || (cfg!(feature ="today") && today == 1) {
if cfg!(feature = "day01") || (cfg!(feature = "today") && today == 1) {
day01::run();
}
if cfg!(feature ="day02") || (cfg!(feature ="today") && today == 2) {
if cfg!(feature = "day02") || (cfg!(feature = "today") && today == 2) {
day02::run();
}
println!("Finished, time taken: {:?}", now.elapsed())