2018: day04: fix new unused warnings
This commit is contained in:
parent
691b404169
commit
239247a8c6
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue