Improved formatting
This commit is contained in:
parent
beeb89a2f6
commit
77cb399748
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user