Skip to content

Commit fa1b41c

Browse files
committed
Clean up code with fmt
1 parent 13dbc8f commit fa1b41c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/bin/15.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ pub fn part_two(input: &str) -> Option<usize> {
196196
stack.push((npi, npj));
197197
let mut can_move = true;
198198
while let Some((current_i, current_j)) = stack.pop() {
199-
200199
let i1 = (current_i as isize + i) as usize;
201200
let j1 = (current_j as isize + j) as usize;
202201
let j2 = match matrix[current_i][current_j] {
@@ -223,7 +222,6 @@ pub fn part_two(input: &str) -> Option<usize> {
223222

224223
if can_move {
225224
while let Some((current_i, current_j)) = connected.pop() {
226-
227225
if matrix[current_i][current_j] != '['
228226
&& matrix[current_i][current_j] != ']'
229227
{

0 commit comments

Comments
 (0)