Remove unnecessary mut
[kaka/rust-sdl-test.git] / src / app.rs
index 4972dfc..3efa791 100644 (file)
@@ -100,7 +100,7 @@ impl ActiveState {
 
 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();
         }
 
@@ -112,7 +112,7 @@ impl AppState for ActiveState {
     }
 
     fn render(&self, canvas: &mut Canvas<Window>) {
-        for mut b in &self.bolls {
+        for b in &self.bolls {
             b.draw(canvas, self.boll_size);
         }
     }