Skip to content

Commit 22569fd

Browse files
committed
fix: clippy lint
1 parent 6977c03 commit 22569fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/year2018/day02.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn part2(input: &[&[u8]]) -> String {
6565
return id1
6666
.iter()
6767
.zip(id2)
68-
.filter_map(|(a, b)| if a == b { Some(char::from(*a)) } else { None })
68+
.filter_map(|(a, b)| (a == b).then(|| char::from(*a)))
6969
.collect();
7070
}
7171
}

0 commit comments

Comments
 (0)