From 239247a8c63e798b2b05e5e0d928eb162f046328 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 4 Dec 2021 16:51:49 +0100 Subject: [PATCH] 2018: day04: fix new unused warnings --- aoc2018/src/day04.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aoc2018/src/day04.rs b/aoc2018/src/day04.rs index cab4b8a..dc69c45 100644 --- a/aoc2018/src/day04.rs +++ b/aoc2018/src/day04.rs @@ -49,9 +49,9 @@ impl FromStr for Event { #[derive(Debug)] struct Date { - year: u32, - month: u8, - day: u8, + _year: u32, + _month: u8, + _day: u8, hour: u8, minute: u8, @@ -84,9 +84,9 @@ impl FromStr for Date { let minute = s[..r_bracket].parse()?; Ok(Date { - year, - month, - day, + _year: year, + _month: month, + _day: day, hour, minute, })