From f1889cfcccb14338587e38fe4e3063fc3a28b38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 5 Dec 2020 10:52:10 +0100 Subject: [PATCH] prefer flat source folder --- src/bin/{day1/main.rs => day1.rs} | 2 +- src/bin/{day2/main.rs => day2.rs} | 2 +- src/bin/{day3/main.rs => day3.rs} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/bin/{day1/main.rs => day1.rs} (93%) rename src/bin/{day2/main.rs => day2.rs} (96%) rename src/bin/{day3/main.rs => day3.rs} (95%) diff --git a/src/bin/day1/main.rs b/src/bin/day1.rs similarity index 93% rename from src/bin/day1/main.rs rename to src/bin/day1.rs index 8a95dfa..3dec301 100644 --- a/src/bin/day1/main.rs +++ b/src/bin/day1.rs @@ -1,4 +1,4 @@ -const INPUT: &str = include_str!("../../../data/day1/input"); +const INPUT: &str = include_str!("../../data/day1/input"); fn main() { let expenses: Vec<_> = INPUT.split_whitespace().map(|s| s.parse::().unwrap()).collect(); diff --git a/src/bin/day2/main.rs b/src/bin/day2.rs similarity index 96% rename from src/bin/day2/main.rs rename to src/bin/day2.rs index 25d9ffe..440fce4 100644 --- a/src/bin/day2/main.rs +++ b/src/bin/day2.rs @@ -1,6 +1,6 @@ use std::convert::TryInto; -const INPUT: &str = include_str!("../../../data/day2/input"); +const INPUT: &str = include_str!("../../data/day2/input"); struct Policy { min: usize, diff --git a/src/bin/day3/main.rs b/src/bin/day3.rs similarity index 95% rename from src/bin/day3/main.rs rename to src/bin/day3.rs index 473c3f5..d54e262 100644 --- a/src/bin/day3/main.rs +++ b/src/bin/day3.rs @@ -1,4 +1,4 @@ -const INPUT: &str = include_str!("../../../data/day3/input"); +const INPUT: &str = include_str!("../../data/day3/input"); struct Forest { pub rows: usize,