all: fix clippy lints for rust 1.65
This commit is contained in:
parent
1d9433098d
commit
36154b6780
11 changed files with 20 additions and 38 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue