+8
-8
Diff
round #0
+1
-1
aoc_2017/src/day13.rs
+1
-1
aoc_2017/src/day13.rs
+1
-1
aoc_2017/src/day21.rs
+1
-1
aoc_2017/src/day21.rs
···
66
66
let dim = pic.shape()[0];
67
67
if iterations == 0 {
68
68
pic.into_iter().filter(|&&x| x).count()
69
-
} else if dim % 2 == 0 {
69
+
} else if dim.is_multiple_of(2) {
70
70
let mut new_pic = ndarray::Array2::from_elem([dim / 2 * 3, dim / 2 * 3], false);
71
71
pic.exact_chunks((2, 2))
72
72
.into_iter()
+1
-1
aoc_2022/src/day09.rs
+1
-1
aoc_2022/src/day09.rs
···
114
114
115
115
fn as_directions(motions: impl Iterator<Item = Motion>) -> impl Iterator<Item = Direction> {
116
116
motions
117
-
.flat_map(|Motion { direction, length }| std::iter::repeat(direction).take(length as usize))
117
+
.flat_map(|Motion { direction, length }| std::iter::repeat_n(direction, length as usize))
118
118
}
119
119
120
120
#[derive(Debug, Clone)]
+1
-1
aoc_2022/src/day11.rs
+1
-1
aoc_2022/src/day11.rs
+1
-1
aoc_2024/src/day11.rs
+1
-1
aoc_2024/src/day11.rs
+1
-1
aoc_2024/src/day12.rs
+1
-1
aoc_2024/src/day12.rs
+2
-2
aoc_companion/src/validation.rs
+2
-2
aoc_companion/src/validation.rs
···
360
360
Ok(ValidationResult {
361
361
date: TEST_DAY,
362
362
part1: Ok(PartValidation {
363
-
validity: GuessSubmitted(IncorrectTooHigh { .. }),
363
+
validity: GuessSubmitted(IncorrectTooHigh),
364
364
..
365
365
}),
366
366
part2: Ok(PartValidation {
367
-
validity: GuessSubmitted(IncorrectTooManyGuesses { .. }),
367
+
validity: GuessSubmitted(IncorrectTooManyGuesses),
368
368
..
369
369
})
370
370
})
History
1 round
0 comments
jonas.tngl.sh
submitted
#0
1 commit
expand
collapse
chore: fix new clippy lints
expand 0 comments
closed without merging