Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 committed Nov 19, 2024
1 parent cf3d361 commit b11a902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastreach-core/src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool, Error> {
Expand Down

0 comments on commit b11a902

Please sign in to comment.