2021: day02: formatting

This commit is contained in:
Antoine Martin 2021-12-03 17:35:41 +01:00
parent ebc5fe5425
commit 5c3a631dde

View file

@ -47,12 +47,8 @@ fn part2(input: &str) -> Result<u64> {
horizontal_pos += dx; horizontal_pos += dx;
depth += aim * dx; depth += aim * dx;
} }
Command::Up(dz) => { Command::Up(dz) => aim -= dz,
aim -= dz; Command::Down(dz) => aim += dz,
}
Command::Down(dz) => {
aim += dz;
}
} }
} }