From 77cb399748ebef46348ae8dbd19d21fa5fc30e3d Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Fri, 2 Dec 2022 04:36:50 +0000 Subject: [PATCH] Improved formatting --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6bf39e4..e60a60d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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())