Skip to content

Commit 2b610ce

Browse files
Formatting
1 parent 6642883 commit 2b610ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bin/02.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ pub fn part_two(input: &str) -> Option<u32> {
4444
.iter()
4545
.filter(|report| {
4646
(0..report.len()).any(|i| {
47-
is_valid(&report[..i].iter().chain(&report[i+1..]).copied().collect::<Vec<i32>>())
47+
is_valid(
48+
&report[..i]
49+
.iter()
50+
.chain(&report[i + 1..])
51+
.copied()
52+
.collect::<Vec<i32>>(),
53+
)
4854
})
4955
})
5056
.count() as u32;

0 commit comments

Comments
 (0)