1
0
Fork 0

Clippy fixes

This commit is contained in:
Vivianne 2022-12-02 23:37:10 -08:00
parent 7663397c1b
commit 0272d77d6b

View file

@ -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();