mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 18:45:02 +01:00
fmt
This commit is contained in:
parent
547882d18f
commit
01e3733421
6 changed files with 10 additions and 8 deletions
|
|
@ -46,7 +46,8 @@ pub fn part2(input: &str) -> u64 {
|
|||
current_seeds.push((stage, range_idx + 1, post));
|
||||
}
|
||||
let offset = in_.start - range.source_start;
|
||||
let new = (range.dest_start + offset)..(range.dest_start + offset + (in_.end - in_.start));
|
||||
let new =
|
||||
(range.dest_start + offset)..(range.dest_start + offset + (in_.end - in_.start));
|
||||
|
||||
if !new.is_empty() {
|
||||
current_seeds.push((stage + 1, 0, new));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue