all: fix clippy lints for rust 1.65

This commit is contained in:
Antoine Martin 2022-12-06 01:17:46 +01:00
parent 1d9433098d
commit 36154b6780
11 changed files with 20 additions and 38 deletions

View file

@ -18,7 +18,7 @@ pub fn run() -> Result<String> {
}
fn manhattan_distance(a: &Point, b: &Point) -> u64 {
(a.x - b.x).abs() as u64 + (a.y - b.y).abs() as u64
(a.x - b.x).unsigned_abs() + (a.y - b.y).unsigned_abs()
}
fn part1(first_wire: &Wire, second_wire: &Wire) -> Result<u64> {