Browse Source

Shut up warnings for now

master
e-dt 4 years ago
parent
commit
ab5c0823a1
  1. 3
      src/apr.rs

3
src/apr.rs

@ -14,6 +14,8 @@ pub struct Apr {
dragging: bool,
actors: Vec<actor::Actor>,
#[allow(dead_code)]
behaviours: Vec<behaviour::Behaviour>,
}
@ -67,6 +69,7 @@ impl Apr {
})
}
#[allow(dead_code)]
pub fn set_colour(&mut self, r: usize, c: usize, clr: u8) {
//You should only modify self.board through this method.
self.board.board[r][c] = clr; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.

Loading…
Cancel
Save