From 9f6f97cc70222060cf4993362023ba297fbd80a5 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Thu, 4 May 2023 22:52:19 +0300 Subject: [PATCH] _ makes the thing not yell at me --- src/gamedata/score_checkers.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gamedata/score_checkers.rs b/src/gamedata/score_checkers.rs index 9dd25bc..387f344 100644 --- a/src/gamedata/score_checkers.rs +++ b/src/gamedata/score_checkers.rs @@ -104,12 +104,12 @@ pub fn get_legal_moves( (row, col): &(usize, usize), (nrow, ncol): (usize, usize), ) -> Vec { - let max_col = nrow - 1; - let max_row = ncol - 1; + let _max_col = nrow - 1; + let _max_row = ncol - 1; let mut moves: Vec = vec![]; match *col { 0 => moves.push(Direction::UP), - max_row => moves.push(Direction::DOWN), + _max_row => moves.push(Direction::DOWN), _ => { moves.push(Direction::UP); moves.push(Direction::DOWN); @@ -117,7 +117,7 @@ pub fn get_legal_moves( }; match *row { 0 => moves.push(Direction::RIGHT), - max_row => moves.push(Direction::LEFT), + _max_row => moves.push(Direction::LEFT), _ => { moves.push(Direction::LEFT); moves.push(Direction::RIGHT)