Skip to content

Commit

Permalink
cargo clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tjheslin1 committed Dec 18, 2021
1 parent f31c1aa commit 08cede1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 2021/day5/src/vents.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::cmp;

use itertools::Itertools;

type Point = (usize, usize);
Expand Down Expand Up @@ -61,7 +59,7 @@ fn lines_overlap(first: &Line, second: &Line, handle_diagonal: bool) -> Vec<Poin
first_points
.iter()
.filter(|p| second_points.contains(*p))
.map(|p| *p)
.copied()
.collect::<Vec<Point>>()
}

Expand Down

0 comments on commit 08cede1

Please sign in to comment.