Skip to content

Commit eb79bc4

Browse files
committed
chore: fmt
1 parent 89bbba5 commit eb79bc4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

aoclp_solutions/src/y2025/day_01.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::iter::{once, successors};
22
use std::str::FromStr;
3+
34
use aoclp::anyhow::anyhow;
45
use aoclp::solvers_impl::input::safe_get_input_as_many;
56

@@ -34,9 +35,9 @@ fn all_moves() -> impl Iterator<Item = i64> {
3435
dial = rotation.apply(dial);
3536

3637
let tick = rotation.direction.one_tick();
37-
successors(Some(from), move |int_dial| {
38-
Some(tick.apply(*int_dial))
39-
}).skip(1).take(rotation.clicks as usize)
38+
successors(Some(from), move |int_dial| Some(tick.apply(*int_dial)))
39+
.skip(1)
40+
.take(rotation.clicks as usize)
4041
}))
4142
}
4243

0 commit comments

Comments
 (0)