From b11a902267673561ae56149adbf79c213a7cae6c Mon Sep 17 00:00:00 2001 From: Nuckal777 Date: Tue, 19 Nov 2024 21:29:48 +0100 Subject: [PATCH] Fix lints --- fastreach-core/src/graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastreach-core/src/graph.rs b/fastreach-core/src/graph.rs index b67bae7..83be18e 100644 --- a/fastreach-core/src/graph.rs +++ b/fastreach-core/src/graph.rs @@ -330,7 +330,7 @@ impl<'a, 'b: 'a> IsochroneDijsktra<'a, 'b> { let year = number & 0b_0000_0000_0111_1111; let month = (number >> 7) & 0b_0000_0000_0000_1111; let day = (number >> 11) & 0b_0000_0000_0001_1111; - NaiveDate::from_ymd_opt(year as i32 + 2000, month.into(), day.into()).unwrap() + NaiveDate::from_ymd_opt(i32::from(year) + 2000, month.into(), day.into()).unwrap() } fn valid_on(period: &OperatingPeriod<'b>, date: NaiveDate) -> Result {