silence lint

This commit is contained in:
Joe Ardent 2022-10-25 15:12:31 -07:00
parent 72bb226f88
commit 94774010d0
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ fn find_ball(grid: Vec<Vec<i32>>) -> Vec<i32> {
let balls = grid[0].len();
let mut res = vec![-1; balls];
for ball in 0..balls {
(0..balls).for_each(|ball| {
let mut pos = ball;
let mut stuck = false;
for row in grid.iter() {
@ -16,7 +16,7 @@ fn find_ball(grid: Vec<Vec<i32>>) -> Vec<i32> {
if !stuck {
res[ball] = pos as i32;
}
}
});
res
}