impl AppState for ActiveState {
fn update(&mut self, dt: Nanoseconds) {
- for mut b in &mut self.bolls {
+ for b in &mut self.bolls {
b.update();
}
}
fn render(&self, canvas: &mut Canvas<Window>) {
- for mut b in &self.bolls {
+ for b in &self.bolls {
b.draw(canvas, self.boll_size);
}
}