2018: day04: fix new unused warnings

This commit is contained in:
Antoine Martin 2021-12-04 16:51:49 +01:00
parent 691b404169
commit 239247a8c6

View file

@ -49,9 +49,9 @@ impl FromStr for Event {
#[derive(Debug)] #[derive(Debug)]
struct Date { struct Date {
year: u32, _year: u32,
month: u8, _month: u8,
day: u8, _day: u8,
hour: u8, hour: u8,
minute: u8, minute: u8,
@ -84,9 +84,9 @@ impl FromStr for Date {
let minute = s[..r_bracket].parse()?; let minute = s[..r_bracket].parse()?;
Ok(Date { Ok(Date {
year, _year: year,
month, _month: month,
day, _day: day,
hour, hour,
minute, minute,
}) })