diff --git a/src/bin/p03.rs b/src/bin/p03.rs index 641c693..8865545 100644 --- a/src/bin/p03.rs +++ b/src/bin/p03.rs @@ -67,7 +67,7 @@ fn part2(lines: &[String]) { let outlier = chunk[GROUP_SIZE - 1] .chars() - .find(|c| sets[0..GROUP_SIZE - 1].into_iter().all(|s| s.contains(&c))) + .find(|c| sets[0..GROUP_SIZE - 1].iter().all(|s| s.contains(c))) .expect("Expect at least one outlier"); let priority = to_priority(outlier).unwrap();