hygienize solution! macro

This commit is contained in:
Tristan Guichaoua 2023-12-06 12:00:31 +01:00
parent b26dc3438d
commit ad43af3e71

View file

@ -50,11 +50,11 @@ macro_rules! solution {
(@impl $day:expr, $( [$func:expr, $part:expr] )*) => {
/// The current day.
const DAY: advent_of_code::template::Day = advent_of_code::day!($day);
const DAY: $crate::template::Day = $crate::day!($day);
fn main() {
use advent_of_code::template::runner::*;
let input = advent_of_code::template::read_file("inputs", DAY);
use $crate::template::runner::*;
let input = $crate::template::read_file("inputs", DAY);
$( run_part($func, &input, DAY, $part); )*
}
};