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)]
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,
})