From 93679b275e75fd6a1401a6735e6453746ddceebb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sun, 7 Jul 2019 15:17:02 +0200 Subject: [PATCH] Remove unnecessary mut --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 4972dfc..3efa791 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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) { - for mut b in &self.bolls { + for b in &self.bolls { b.draw(canvas, self.boll_size); } } -- 2.11.0