aoc2020: fix clippy lints
This commit is contained in:
parent
0df2dd8dd8
commit
74f2ada129
4 changed files with 7 additions and 11 deletions
|
|
@ -86,9 +86,7 @@ fn part2(input: &str) -> Result<usize> {
|
|||
let mut seen = HashSet::new();
|
||||
let mut todo: Vec<HexCoordinates> = black_tiles.iter().copied().collect();
|
||||
|
||||
while !todo.is_empty() {
|
||||
let tile = todo.pop().unwrap();
|
||||
|
||||
while let Some(tile) = todo.pop() {
|
||||
if seen.contains(&tile) {
|
||||
continue;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue