Skip to content

Commit f6c50ce

Browse files
committed
fix: clippy lint for the clippy lint
1 parent 22569fd commit f6c50ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/year2018/day02.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ pub fn part2(input: &[&[u8]]) -> String {
6565
return id1
6666
.iter()
6767
.zip(id2)
68-
.filter_map(|(a, b)| (a == b).then(|| char::from(*a)))
68+
.filter(|&(a, b)| a == b)
69+
.map(|(a, _)| char::from(*a))
6970
.collect();
7071
}
7172
}

0 commit comments

Comments
 (0)