QuackatronHQ / Gigarepo

Found #[must_use] on a unit-returning function RS-W1011
Anti-pattern
Minor
1 occurrence in this check
Function that is annotated with #[must_use] returns ()`
 45        Self { cells }
 46    }
 47
 48    #[must_use] 49    pub fn update_state(&mut self, player: Player, position: usize) { 50        let position = position - 1; 51        let (x, y) = (position / 3, position % 3); 52        self.cells[x][y] = player; 53    } 54
 55    pub fn get_state(&self, position: usize) -> Player {
 56        let position = position - 1;