Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787dbfb
)
Remove unnecessary mut
author
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sun, 7 Jul 2019 13:17:02 +0000
(15:17 +0200)
committer
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sun, 7 Jul 2019 13:17:02 +0000
(15:17 +0200)
src/app.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/app.rs
b/src/app.rs
index
4972dfc
..
3efa791
100644
(file)
--- 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<Window>) {
- for
mut
b in &self.bolls {
+ for b in &self.bolls {
b.draw(canvas, self.boll_size);
}
}